Interface SType

  • All Known Subinterfaces:
    SDataType, SEnumeration, SPrimitiveDataType

    public interface SType
    Types define categories of values. For each type we can say that does a particular value belong to it by isInstanceOf(Object). Note that null is treated as a possible value so it can be an instance of some types.
    • Field Detail

      • NOT_A_VALUE

        @NotNull
        static final Object NOT_A_VALUE
        Object that can not be an instance of any type. We use such marker object to show that we can not return any value of a particular type. We can not use null for such purpose since null can be actually a value of some types.
    • Method Detail

      • isInstanceOf

        boolean isInstanceOf​(@Nullable
                             Object value)
        Returns true if given values belongs to this type. Note that null can be an instance of some types.
      • getDefault

        @Nullable
        Object getDefault()
        Returns default value of the type.