Interface Group

All Superinterfaces:
Comparable<Group>
All Known Subinterfaces:
GroupWithAttributes
All Known Implementing Classes:
DelegatingGroupWithAttributes, ImmutableGroup

public interface Group extends Comparable<Group>
Represents a group.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    CompareTo must be compatible with the equals() and hashCode() methods
    boolean
    Implementations must ensure equality based on case-insensitive getName().
     
    int
    Implementations must produce a hash-code based on case-insensitive getName().
  • Method Details

    • getName

      String getName()
      Returns:
      name of the group.
    • equals

      boolean equals(Object o)
      Implementations must ensure equality based on case-insensitive getName().
      Overrides:
      equals in class Object
      Parameters:
      o - object to compare to.
      Returns:
      true if and only if the names in lowercase of the directory entities match.
    • hashCode

      int hashCode()
      Implementations must produce a hash-code based on case-insensitive getName().
      Overrides:
      hashCode in class Object
      Returns:
      hash-code.
    • compareTo

      int compareTo(Group o)
      CompareTo must be compatible with the equals() and hashCode() methods
      Specified by:
      compareTo in interface Comparable<Group>
      Parameters:
      o - the object to be compared.
      Returns:
      a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.