Class Field.Set

    • Method Detail

      • fieldWithName

        public Field fieldWithName​(String name)
        Get the field with the given {Field#name() name}.
        Parameters:
        name - the name of the field
        Returns:
        the field, or null if there is no field with the given name
      • asArray

        public Field[] asArray()
        Get the fields in this set as an array.
        Returns:
        the array of fields; never null
      • forEachMissingDependent

        public void forEachMissingDependent​(Consumer<String> consumer)
        Call the supplied function for each of this set's fields that have non-existent dependents.
        Parameters:
        consumer - the function; may not be null
      • forEachTopLevelField

        public void forEachTopLevelField​(Consumer<Field> consumer)
        Call the supplied function for each of this set's fields that are not included as dependents in other fields.
        Parameters:
        consumer - the function; may not be null
      • with

        public Field.Set with​(Field... fields)
        Get a new set that contains the fields in this set and those supplied.
        Parameters:
        fields - the fields to include with this set's fields
        Returns:
        the new set; never null
      • with

        public Field.Set with​(Iterable<Field> fields)
        Get a new set that contains the fields in this set and those supplied.
        Parameters:
        fields - the fields to include with this set's fields
        Returns:
        the new set; never null
      • allFieldNames

        public Set<String> allFieldNames()