Record Class PeopleDirectoryEditorGroups

java.lang.Object
java.lang.Record
io.meeds.social.people.model.PeopleDirectoryEditorGroups
Record Components:
groups - the stored groups the editor can select, shown as chips
otherGroupsApplied - whether the filter also holds groups the editor cannot select: they stay applied, and the drawer says so without naming them
otherGroupsCount - for an editor who may set the filter, the number of those groups, which count against the bound of the filter; 0 otherwise
unresolvableGroups - whether, for an editor who may set the filter, stored groups no longer exist or the stored value cannot be read: they match nobody until the editor selects groups or turns the filter OFF
groupFilterInvalid - whether, for an editor who may set the filter, the stored value cannot be read: the directory lists nobody, and any save of the group filter, the shown groups unchanged included, rewrites it
missingGroups - whether, for any editor, the directory misses groups: stored groups no longer exist, the stored value cannot be read, or the directory was made from a template and its groups were not set again; the drawer says so without naming them

public record PeopleDirectoryEditorGroups(List<PeopleDirectoryGroup> groups, boolean otherGroupsApplied, int otherGroupsCount, boolean unresolvableGroups, boolean groupFilterInvalid, boolean missingGroups) extends Record
The groups of a People Directory window's filter, as the settings drawer shows them to an editor.
  • Constructor Details

    • PeopleDirectoryEditorGroups

      public PeopleDirectoryEditorGroups(List<PeopleDirectoryGroup> groups, boolean otherGroupsApplied, int otherGroupsCount, boolean unresolvableGroups, boolean groupFilterInvalid, boolean missingGroups)
      Creates an instance of a PeopleDirectoryEditorGroups record class.
      Parameters:
      groups - the value for the groups record component
      otherGroupsApplied - the value for the otherGroupsApplied record component
      otherGroupsCount - the value for the otherGroupsCount record component
      unresolvableGroups - the value for the unresolvableGroups record component
      groupFilterInvalid - the value for the groupFilterInvalid record component
      missingGroups - the value for the missingGroups record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • groups

      public List<PeopleDirectoryGroup> groups()
      Returns the value of the groups record component.
      Returns:
      the value of the groups record component
    • otherGroupsApplied

      public boolean otherGroupsApplied()
      Returns the value of the otherGroupsApplied record component.
      Returns:
      the value of the otherGroupsApplied record component
    • otherGroupsCount

      public int otherGroupsCount()
      Returns the value of the otherGroupsCount record component.
      Returns:
      the value of the otherGroupsCount record component
    • unresolvableGroups

      public boolean unresolvableGroups()
      Returns the value of the unresolvableGroups record component.
      Returns:
      the value of the unresolvableGroups record component
    • groupFilterInvalid

      public boolean groupFilterInvalid()
      Returns the value of the groupFilterInvalid record component.
      Returns:
      the value of the groupFilterInvalid record component
    • missingGroups

      public boolean missingGroups()
      Returns the value of the missingGroups record component.
      Returns:
      the value of the missingGroups record component