| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectProperty | |
| private static final Logger | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | GroupTreeNode(AbstractGroup
the group underlying this node group)Creates this node and associates the specified group with it. |
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public GroupTreeNode | |
| private void | collectMatchingGroups(List<BibEntry> entries, List<GroupTreeNode> groups, IdentityHashMap<BibEntry, IdentityHashMap<GroupTreeNode, GroupTreeNode.
|
| public boolean | |
| public GroupTreeNode | copyNode()
Implements abstract org. Creates a copy of this node, completely separated from the tree (i.e. no children and no parent) |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public Optional | findGroupByName(String name)
Returns the existing group with the given name from the subtree starting at this node, if any. |
| public List | Returns: matched entrieslist of entries to be searched entries)Determines the entries in the specified list which are matched by this group. |
| public List | Returns: matched entriesdatabase to be searched database)Determines the entries in the specified database which are matched by this group. |
| public GroupTreeNode | findOrCreateExplicitGroup(String name, Character keywordSeparator)
Returns the existing group with the given name from the subtree starting at this node,
or creates it as a top-level |
| public static GroupTreeNode | |
| public Optional | |
| public List | getContainingGroups(List<BibEntry>
List of entries, boolean BibEntry to search forWhether to return only groups that must contain all entries requireAll)Get only groups containing all the entries or just groups containing any of the |
| public List | |
| public AbstractGroup | |
| public ObjectProperty | |
| public List | getMatchingGroups(BibEntry entry)
Determines all groups in the subtree starting at this node which contain the given entry. |
| public List | getMatchingGroups(List<BibEntry> entries)
Determines all groups in the subtree starting at this node which contain at least one of the given entries. |
| public String | |
| public String | getPath()
Get the path from the root of the tree as a string (every group name is separated by |
| public SearchMatcher | getSearchMatcher()
Creates a |
| private SearchMatcher | |
| public int | |
| public boolean | |
| private boolean | matches(BibEntry entry, GroupHierarchyType originalContext, @Nullable IdentityHashMap<GroupTreeNode, GroupTreeNode.
|
| public List | |
| public void | setGroup(@NonNull AbstractGroup
the new group (has to be non-null) newGroup)Associates the specified group with this node. |
| public List | setGroup(@NonNull AbstractGroup
the new group (has to be non-null) newGroup, boolean specifies whether previous matched entries should be added to the new group shouldKeepPreviousAssignments, boolean specifies whether previous matched entries should be removed from the old group shouldRemovePreviousAssignments, List<BibEntry> list of entries in the database entriesInDatabase)Associates the specified group with this node while also providing the possibility to modify previous matched entries so that they are now matched by the new group. |
| public String |
| groupProperty | back to summary |
|---|---|
| private final ObjectProperty<AbstractGroup> groupProperty | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| PATH_DELIMITER | back to summary |
|---|---|
| public static final String PATH_DELIMITER | |
| GroupTreeNode | back to summary |
|---|---|
| public GroupTreeNode(AbstractGroup group) Creates this node and associates the specified group with it.
| |
| addEntriesToGroup | back to summary |
|---|---|
| public List Adds the specified entries to this group. If the group does not support explicit adding of entries (i.e., does not implement | |
| addSubgroup | back to summary |
|---|---|
| public GroupTreeNode addSubgroup(AbstractGroup subgroup) | |
| collectMatchingGroups | back to summary |
|---|---|
| private void collectMatchingGroups(List<BibEntry> entries, List<GroupTreeNode> groups, IdentityHashMap<BibEntry, IdentityHashMap<GroupTreeNode, GroupTreeNode. | |
| containsGroup | back to summary |
|---|---|
| public boolean containsGroup(AbstractGroup other) | |
| copyNode | back to summary |
|---|---|
| public GroupTreeNode copyNode() Implements abstract org. Doc from org. Creates a copy of this node, completely separated from the tree (i.e. no children and no parent)
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| findGroupByName | back to summary |
|---|---|
| public Optional Returns the existing group with the given name from the subtree starting at this node, if any. The receiving node itself is excluded from the search (it is usually the synthetic "All entries" root). Group names are unique within a library, so the name identifies the group anywhere in the tree. | |
| findMatches | back to summary |
|---|---|
| public List Determines the entries in the specified list which are matched by this group. | |
| findMatches | back to summary |
|---|---|
| public List Determines the entries in the specified database which are matched by this group.
| |
| findOrCreateExplicitGroup | back to summary |
|---|---|
| public GroupTreeNode findOrCreateExplicitGroup(String name, Character keywordSeparator) Returns the existing group with the given name from the subtree starting at this node,
or creates it as a top-level Note the created group is attached to the tree immediately. Callers that need to assign
entries to a freshly created group should instead use | |
| fromGroup | back to summary |
|---|---|
| public static GroupTreeNode fromGroup(AbstractGroup group) | |
| getChildByPath | back to summary |
|---|---|
| public Optional Finds a children using the given path. Each group name should be separated by The path should be generated using | |
| getContainingGroups | back to summary |
|---|---|
| public List Get only groups containing all the entries or just groups containing any of the
| |
| getEntriesInGroup | back to summary |
|---|---|
| public List | |
| getGroup | back to summary |
|---|---|
| public AbstractGroup getGroup() Returns the group underlying this node.
| |
| getGroupProperty | back to summary |
|---|---|
| public ObjectProperty | |
| getMatchingGroups | back to summary |
|---|---|
| public List Determines all groups in the subtree starting at this node which contain the given entry. | |
| getMatchingGroups | back to summary |
|---|---|
| public List Determines all groups in the subtree starting at this node which contain at least one of the given entries. | |
| getName | back to summary |
|---|---|
| public String getName() Get the name of the underlying group
| |
| getPath | back to summary |
|---|---|
| public String getPath() Get the path from the root of the tree as a string (every group name is separated by The name of the root is not included. | |
| getSearchMatcher | back to summary |
|---|---|
| public SearchMatcher getSearchMatcher() Creates a | |
| getSearchMatcher | back to summary |
|---|---|
| private SearchMatcher getSearchMatcher(GroupHierarchyType originalContext) | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| matches | back to summary |
|---|---|
| public boolean matches(BibEntry entry) Returns whether this group matches the specified | |
| matches | back to summary |
|---|---|
| private boolean matches(BibEntry entry, GroupHierarchyType originalContext, @Nullable IdentityHashMap<GroupTreeNode, GroupTreeNode. | |
| removeEntriesFromGroup | back to summary |
|---|---|
| public List Removes the given entries from this group. If the group does not support the explicit removal of entries (i.e., does not implement | |
| setGroup | back to summary |
|---|---|
| public void setGroup(@NonNull AbstractGroup newGroup) Associates the specified group with this node.
| |
| setGroup | back to summary |
|---|---|
| public List Associates the specified group with this node while also providing the possibility to modify previous matched entries so that they are now matched by the new group.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void |
| knownMask | back to summary |
|---|---|
| private int knownMask | |
| trueMask | back to summary |
|---|---|
| private int trueMask | |
| MatchCache | back to summary |
|---|---|
| private MatchCache() | |
| bit | back to summary |
|---|---|
| private static int bit(GroupHierarchyType context) | |
| get | back to summary |
|---|---|
| pack-priv boolean get(GroupHierarchyType context) | |
| hasValue | back to summary |
|---|---|
| pack-priv boolean hasValue(GroupHierarchyType context) | |
| put | back to summary |
|---|---|
| pack-priv void put(GroupHierarchyType context, boolean value) | |