Class ClusterWaitType


  • @Generated("com.palantir.conjure.java.types.EnumGenerator")
    @Immutable
    public final class ClusterWaitType
    extends java.lang.Object
    Differentiates cluster waits as being for docker-compose "native healthchecks" or user supplied code.

    This class is used instead of a native enum to support unknown values. Rather than throw an exception, the valueOf(java.lang.String) method defaults to a new instantiation of ClusterWaitType where get() will return ClusterWaitType.Value.UNKNOWN.

    For example, ClusterWaitType.valueOf("corrupted value").get() will return ClusterWaitType.Value.UNKNOWN, but toString() will return "corrupted value".

    There is no method to access all instantiations of this class, since they cannot be known at compile time.

    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • valueOf

        public static ClusterWaitType valueOf​(@Nonnull
                                              java.lang.String value)