Class Fields

    • Constructor Detail

      • Fields

        public Fields()
        Instantiates a new Fields.
    • Method Detail

      • withNames

        public static Fields withNames​(String... fields)
        Creates a Fields instance with field names.
        Parameters:
        fields - the fields
        Returns:
        the fields
      • addField

        public Fields addField​(String field)
        Adds a field name to a list of field names and returns the updated list.
        Parameters:
        field - the field
        Returns:
        the fields
      • getFieldNames

        public List<String> getFieldNames()
        Gets an unmodifiable list of field names.
        Returns:
        the field names
      • startsWith

        public boolean startsWith​(Fields other)
        Check if a Fields is a subset of the current Fields.
        Parameters:
        other - the other
        Returns:
        the boolean
      • getEncodedName

        public String getEncodedName()
        Gets the encoded name for this Fields.
        Returns:
        the encoded name
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object