public class StringResourceVersion extends Object implements ResourceVersion<StringResourceVersion>
ResourceVersion
implementation with String
value. The resource version in
Kubernetes is String
. And they have same length, we could easily compare string.Modifier and Type | Method and Description |
---|---|
int |
compareTo(StringResourceVersion other) |
boolean |
equals(Object obj) |
String |
getValue() |
int |
hashCode() |
boolean |
isExisting()
Check whether the state handle is existing.
|
static StringResourceVersion |
notExisting() |
String |
toString() |
static StringResourceVersion |
valueOf(String value) |
public int compareTo(@Nonnull StringResourceVersion other)
compareTo
in interface Comparable<StringResourceVersion>
public boolean isExisting()
ResourceVersion
isExisting
in interface ResourceVersion<StringResourceVersion>
ResourceVersion
on external storage.
Or false it does not exist.public String getValue()
public static StringResourceVersion notExisting()
public static StringResourceVersion valueOf(String value)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.