Class IntegerMetaData

    • Constructor Detail

      • IntegerMetaData

        public IntegerMetaData​(String name)
      • IntegerMetaData

        public IntegerMetaData​(String name,
                               Integer min,
                               Integer max)
        Parameters:
        min - Min allowed value. If null: no restriction on min value in this column
        max - Max allowed value. If null: no restriction on max value in this column
    • Method Detail

      • getColumnType

        public ColumnType getColumnType()
        Description copied from interface: ColumnMetaData
        Get the type of column
      • isValid

        public boolean isValid​(Writable writable)
        Description copied from interface: ColumnMetaData
        Is the given Writable valid for this column, given the column type and any restrictions given by the ColumnMetaData object?
        Parameters:
        writable - Writable to check
        Returns:
        true if value, false if invalid
      • isValid

        public boolean isValid​(Object input)
        Is the given object valid for this column, given the column type and any restrictions given by the ColumnMetaData object?
        Parameters:
        input - object to check
        Returns:
        true if value, false if invalid