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 chipsotherGroupsApplied- whether the filter also holds groups the editor cannot select: they stay applied, and the drawer says so without naming themotherGroupsCount- for an editor who may set the filter, the number of those groups, which count against the bound of the filter; 0 otherwiseunresolvableGroups- 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 OFFgroupFilterInvalid- 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 itmissingGroups- 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 Summary
ConstructorsConstructorDescriptionPeopleDirectoryEditorGroups(List<PeopleDirectoryGroup> groups, boolean otherGroupsApplied, int otherGroupsCount, boolean unresolvableGroups, boolean groupFilterInvalid, boolean missingGroups) Creates an instance of aPeopleDirectoryEditorGroupsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thegroupFilterInvalidrecord component.groups()Returns the value of thegroupsrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of themissingGroupsrecord component.booleanReturns the value of theotherGroupsAppliedrecord component.intReturns the value of theotherGroupsCountrecord component.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theunresolvableGroupsrecord component.
-
Constructor Details
-
PeopleDirectoryEditorGroups
public PeopleDirectoryEditorGroups(List<PeopleDirectoryGroup> groups, boolean otherGroupsApplied, int otherGroupsCount, boolean unresolvableGroups, boolean groupFilterInvalid, boolean missingGroups) Creates an instance of aPeopleDirectoryEditorGroupsrecord class.- Parameters:
groups- the value for thegroupsrecord componentotherGroupsApplied- the value for theotherGroupsAppliedrecord componentotherGroupsCount- the value for theotherGroupsCountrecord componentunresolvableGroups- the value for theunresolvableGroupsrecord componentgroupFilterInvalid- the value for thegroupFilterInvalidrecord componentmissingGroups- the value for themissingGroupsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
groups
-
otherGroupsApplied
public boolean otherGroupsApplied()Returns the value of theotherGroupsAppliedrecord component.- Returns:
- the value of the
otherGroupsAppliedrecord component
-
otherGroupsCount
public int otherGroupsCount()Returns the value of theotherGroupsCountrecord component.- Returns:
- the value of the
otherGroupsCountrecord component
-
unresolvableGroups
public boolean unresolvableGroups()Returns the value of theunresolvableGroupsrecord component.- Returns:
- the value of the
unresolvableGroupsrecord component
-
groupFilterInvalid
public boolean groupFilterInvalid()Returns the value of thegroupFilterInvalidrecord component.- Returns:
- the value of the
groupFilterInvalidrecord component
-
missingGroups
public boolean missingGroups()Returns the value of themissingGroupsrecord component.- Returns:
- the value of the
missingGroupsrecord component
-