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 int
compareTo(IntegerResourceVersion other)
boolean
equals(Object obj)
int
getValue()
int
hashCode()
boolean
isExisting()
Check whether the state handle is existing.static IntegerResourceVersion
notExisting()
String
toString()
static IntegerResourceVersion
valueOf(int value)
Create aIntegerResourceVersion
with given integer value.
-
-
-
Method Detail
-
compareTo
public int compareTo(@Nonnull IntegerResourceVersion other)
- Specified by:
compareTo
in interfaceComparable<IntegerResourceVersion>
-
isExisting
public boolean isExisting()
Description copied from interface:ResourceVersion
Check whether the state handle is existing.- Specified by:
isExisting
in interfaceResourceVersion<IntegerResourceVersion>
- Returns:
- true if state handle exists with current
ResourceVersion
on 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 aIntegerResourceVersion
with given integer value.- Parameters:
value
- resource version integer value. The value should not be negative.- Returns:
IntegerResourceVersion
with given value.
-
-