Class Project.NameKey

  • All Implemented Interfaces:
    Serializable, Comparable<Project.NameKey>
    Direct Known Subclasses:
    AllProjectsName, AllUsersName
    Enclosing class:
    Project

    public static class Project.NameKey
    extends Object
    implements Serializable, Comparable<Project.NameKey>
    Project name key.

    This class has subclasses such as AllProjectsName, which make Guice injection more convenient. Subclasses must compare equal if they have the same name, regardless of the specific class. This implies that subclasses may not add additional fields.

    Because of this unusual subclassing behavior, this class is not an @AutoValue, unlike other key types in this package. However, this is strictly an implementation detail; its interface and semantics are otherwise analogous to the @AutoValue types.

    See Also:
    Serialized Form