Class KubernetesVersionFactory.NonKubernetesVersion
- java.lang.Object
-
- io.fabric8.kubernetes.client.utils.KubernetesVersionFactory.Version
-
- io.fabric8.kubernetes.client.utils.KubernetesVersionFactory.NonKubernetesVersion
-
- All Implemented Interfaces:
Comparable<KubernetesVersionFactory.Version>
- Enclosing class:
- KubernetesVersionFactory
public static class KubernetesVersionFactory.NonKubernetesVersion extends KubernetesVersionFactory.Version
A non kubernetes version which is any version string that does not start with a 'v'.
-
-
Field Summary
Fields Modifier and Type Field Description static KubernetesVersionFactory.VersionFactory<KubernetesVersionFactory.NonKubernetesVersion>
FACTORY
-
Fields inherited from class io.fabric8.kubernetes.client.utils.KubernetesVersionFactory.Version
full
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(KubernetesVersionFactory.Version other)
Non-Kubernetes versions have lower priority than kubernetes versions.boolean
isKubernetes()
-
Methods inherited from class io.fabric8.kubernetes.client.utils.KubernetesVersionFactory.Version
getFull, toString
-
-
-
-
Field Detail
-
FACTORY
public static final KubernetesVersionFactory.VersionFactory<KubernetesVersionFactory.NonKubernetesVersion> FACTORY
-
-
Method Detail
-
isKubernetes
public boolean isKubernetes()
- Specified by:
isKubernetes
in classKubernetesVersionFactory.Version
-
compareTo
public int compareTo(KubernetesVersionFactory.Version other)
Non-Kubernetes versions have lower priority than kubernetes versions. Among them they're inverse-lexicographically sorted.- Parameters:
other
- the other version to compare to- Returns:
- -1 if this has a lower, 0 if equal or 1 if higher priority
-
-