Class IntOrString

java.lang.Object
io.micronaut.kubernetes.client.openapi.type.IntOrString

public final class IntOrString extends Object
Custom type which is a wrapper for string or integer value.

The code has been copied from the official client and modified: IntOrString

  • Constructor Details

    • IntOrString

      public IntOrString(String value)
    • IntOrString

      public IntOrString(int value)
  • Method Details

    • isInteger

      public boolean isInteger()
    • getStrValue

      public String getStrValue()
    • getIntValue

      public Integer getIntValue()
    • toString

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object