com.atlassian.confluence.api.model.people
Class SubjectType
java.lang.Object
com.atlassian.confluence.api.model.people.SubjectType
- All Implemented Interfaces:
- ApiEnum
@ExperimentalApi
public class SubjectType
- extends Object
- implements ApiEnum
Though SubjectType.USER and SubjectType.GROUP are singleton, do NOT assume you can compare an arbitrary SubjectType
with one of those via an equality (==) check. Always use .equals(). (you should be anyway)
- Since:
- 5.7
Nested Class Summary |
static class |
SubjectType.Expansions
Represents the available Expansions when dealing with a Map> |
USER
public static final SubjectType USER
GROUP
public static final SubjectType GROUP
VALUES
public static final Set<SubjectType> VALUES
valueOf
public static SubjectType valueOf(String name)
values
public static SubjectType[] values()
toString
public String toString()
- Overrides:
toString
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
serialise
public String serialise()
- Specified by:
serialise
in interface ApiEnum
- Returns:
- the JSON-serialised version of this enum.
Copyright © 2003–2015 Atlassian. All rights reserved.