public class DelegatingGroupWithAttributes extends AbstractDelegatingEntityWithAttributes implements GroupWithAttributes
Instances of this class will be effectively immutable so long as either:
Constructor and Description |
---|
DelegatingGroupWithAttributes(Group group,
Attributes attributes) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Group group)
CompareTo must be compatible with the equals() and hashCode() methods
|
boolean |
equals(Object o)
Implementations must ensure equality based on case-insensitive getName().
|
String |
getName() |
int |
hashCode()
Implementations must produce a hash-code based on case-insensitive getName().
|
getKeys, getValue, getValues, isEmpty
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getKeys, getValue, getValues, isEmpty
public DelegatingGroupWithAttributes(Group group, Attributes attributes)
public String getName()
public int compareTo(Group group)
Group
compareTo
in interface Group
compareTo
in interface Comparable<Group>
group
- the object to be compared.public boolean equals(Object o)
Group
Copyright © 2021 Atlassian. All rights reserved.