Class IntegerResourceVersion
- java.lang.Object
-
- org.apache.flink.runtime.persistence.IntegerResourceVersion
-
- All Implemented Interfaces:
Serializable,Comparable<IntegerResourceVersion>,ResourceVersion<IntegerResourceVersion>
public class IntegerResourceVersion extends Object implements ResourceVersion<IntegerResourceVersion>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(IntegerResourceVersion other)booleanequals(Object obj)intgetValue()inthashCode()booleanisExisting()Check whether the state handle is existing.static IntegerResourceVersionnotExisting()StringtoString()static IntegerResourceVersionvalueOf(int value)Create aIntegerResourceVersionwith given integer value.
-
-
-
Method Detail
-
compareTo
public int compareTo(@Nonnull IntegerResourceVersion other)- Specified by:
compareToin interfaceComparable<IntegerResourceVersion>
-
isExisting
public boolean isExisting()
Description copied from interface:ResourceVersionCheck whether the state handle is existing.- Specified by:
isExistingin interfaceResourceVersion<IntegerResourceVersion>- Returns:
- true if state handle exists with current
ResourceVersionon external storage. Or false it does not exist.
-
getValue
public int getValue()
-
notExisting
public static IntegerResourceVersion notExisting()
-
valueOf
public static IntegerResourceVersion valueOf(int value)
Create aIntegerResourceVersionwith given integer value.- Parameters:
value- resource version integer value. The value should not be negative.- Returns:
IntegerResourceVersionwith given value.
-
-