public class IntegerResourceVersion extends Object implements ResourceVersion<IntegerResourceVersion>
Modifier and Type | Method and 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 a
IntegerResourceVersion with given integer value. |
public int compareTo(@Nonnull IntegerResourceVersion other)
compareTo
in interface Comparable<IntegerResourceVersion>
public boolean isExisting()
ResourceVersion
isExisting
in interface ResourceVersion<IntegerResourceVersion>
ResourceVersion
on external storage.
Or false it does not exist.public int getValue()
public static IntegerResourceVersion notExisting()
public static IntegerResourceVersion valueOf(int value)
IntegerResourceVersion
with given integer value.value
- resource version integer value. The value should not be negative.IntegerResourceVersion
with given value.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.