Class Schema.Options

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    Schema

    public static class Schema.Options
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Method Detail

      • toString

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

        public java.util.Set<java.lang.String> getOptionNames()
      • hasOptions

        public boolean hasOptions()
      • hasOption

        public boolean hasOption​(java.lang.String name)
      • equals

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

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

        public <T> T getValue​(java.lang.String optionName)
        Get the value of an option. If the option is not found null is returned.
      • getValue

        public <T> T getValue​(java.lang.String optionName,
                              java.lang.Class<T> valueClass)
        Get the value of an option. If the option is not found null is returned.
      • getValueOrDefault

        public <T> T getValueOrDefault​(java.lang.String optionName,
                                       T defaultValue)
        Get the value of an option. If the option is not found the default value is returned.
      • getType

        public Schema.FieldType getType​(java.lang.String optionName)
        Get the type of an option.