public class GroupFullInfo extends GroupSummary
Modifier and Type | Class and Description |
---|---|
static class |
GroupFullInfo.Builder
Builder for
GroupFullInfo . |
Modifier and Type | Field and Description |
---|---|
protected long |
created |
protected List<GroupMemberInfo> |
members |
groupExternalId, groupId, groupName, memberCount
Constructor and Description |
---|
GroupFullInfo(String groupName,
String groupId,
long created)
Full description of a group.
|
GroupFullInfo(String groupName,
String groupId,
long created,
String groupExternalId,
Long memberCount,
List<GroupMemberInfo> members)
Full description of a group.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
long |
getCreated()
The group creation time as a UTC timestamp in milliseconds since the Unix
epoch.
|
List<GroupMemberInfo> |
getMembers()
List of group members.
|
int |
hashCode() |
static GroupFullInfo.Builder |
newBuilder(String groupName,
String groupId,
long created)
Returns a new builder for creating an instance of this class.
|
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
getGroupExternalId, getGroupId, getGroupName, getMemberCount, newBuilder
protected final List<GroupMemberInfo> members
protected final long created
public GroupFullInfo(String groupName, String groupId, long created, String groupExternalId, Long memberCount, List<GroupMemberInfo> members)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
groupName
- Must not be null
.groupId
- Must not be null
.created
- The group creation time as a UTC timestamp in
milliseconds since the Unix epoch.groupExternalId
- External ID of group. This is an arbitrary ID
that an admin can attach to a group.memberCount
- The number of members in the group.members
- List of group members. Must not contain a null
item.IllegalArgumentException
- If any argument does not meet its
preconditions.public GroupFullInfo(String groupName, String groupId, long created)
The default values for unset fields will be used.
groupName
- Must not be null
.groupId
- Must not be null
.created
- The group creation time as a UTC timestamp in
milliseconds since the Unix epoch.IllegalArgumentException
- If any argument does not meet its
preconditions.public List<GroupMemberInfo> getMembers()
null
if not present.public long getCreated()
public static GroupFullInfo.Builder newBuilder(String groupName, String groupId, long created)
groupName
- Must not be null
.groupId
- Must not be null
.created
- The group creation time as a UTC timestamp in
milliseconds since the Unix epoch.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class GroupSummary
public boolean equals(Object obj)
equals
in class GroupSummary
public String toString()
toString
in class GroupSummary
public String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class GroupSummary