Package org.apache.pinot.spi.utils
Class Pairs.IntObjectPair<T extends Comparable>
- java.lang.Object
-
- org.apache.pinot.spi.utils.Pairs.IntObjectPair<T>
-
- Enclosing class:
- Pairs
public static class Pairs.IntObjectPair<T extends Comparable> extends Object
Utility class to store a primitive 'int' and 'Object' pair.
-
-
Constructor Summary
Constructors Constructor Description IntObjectPair(int intVal, T objectVal)Constructor for the class
-
Method Summary
Modifier and Type Method Description intgetIntValue()Returns the int value of the pairTgetObjectValue()Returns the object value of the pairvoidsetIntValue(int intValue)Sets the provided value into the 'int' field.voidsetObjectValue(T objectValue)Sets the specified object value into the 'object' field.
-
-
-
Constructor Detail
-
IntObjectPair
public IntObjectPair(int intVal, T objectVal)Constructor for the class- Parameters:
intVal- 'int' valueobjectVal- 'Object' value
-
-
Method Detail
-
setIntValue
public void setIntValue(int intValue)
Sets the provided value into the 'int' field.
-
getIntValue
public int getIntValue()
Returns the int value of the pair- Returns:
- 'int' value
-
setObjectValue
public void setObjectValue(T objectValue)
Sets the specified object value into the 'object' field.
-
getObjectValue
public T getObjectValue()
Returns the object value of the pair- Returns:
- 'Object' value
-
-