\r\n

51Degrees Pipeline Java  4.5

51Degrees Pipeline for Java

fiftyone.pipeline.core.data.WeightedValue< TValue > Class Template Reference

Detailed Description

The value with associated weighting.

Parameters
<TValue> - the type of value stored inside

Inheritance diagram for fiftyone.pipeline.core.data.WeightedValue< TValue >:

[legend]

Collaboration diagram for fiftyone.pipeline.core.data.WeightedValue< TValue >:

[legend]

Public Member Functions

 WeightedValue (int rawWeighting, TValue value)
Designated constructor. More...
int  getRawWeighting ()
TValue  getValue ()
A specific value stored within. More...
boolean  equals (Object o)
int  hashCode ()
String  toString ()

Public Member Functions inherited from fiftyone.pipeline.core.data.IWeightedValue< TValue >

default float  getWeighting ()
Recalculates IWeightedValue#getRawWeighting into a floating point value in range (0~1). More...

Constructor & Destructor Documentation

◆ WeightedValue()

fiftyone.pipeline.core.data.WeightedValue< TValue >.WeightedValue ( int   rawWeighting,
TValue   value  
)

Designated constructor.

Parameters
rawWeighting - "Integer" weight factor.
value - A specific value to store within.

Member Function Documentation

◆ getRawWeighting()

int fiftyone.pipeline.core.data.WeightedValue< TValue >.getRawWeighting ( )

"Integer" weight factor.

Should be within ushort range (0~65535).

Returns
"Integer" weight factor.

Implements fiftyone.pipeline.core.data.IWeightedValue< TValue >.

◆ getValue()

TValue fiftyone.pipeline.core.data.WeightedValue< TValue >.getValue ( )

A specific value stored within.

Returns
a specific value stored within.

Implements fiftyone.pipeline.core.data.IWeightedValue< TValue >.

On This Page