public enum GroupRelationType extends Enum<GroupRelationType>
| Modifier and Type | Class and Description |
|---|---|
static class |
GroupRelationType.Values
String constants to use as a discriminator
|
| Enum Constant and Description |
|---|
MEMBER_GROUP
group, direct member of the group
|
MEMBER_USER
user, direct member of the group
|
SUPER_GROUP
SUPER_GROUP - ranking group
|
| Modifier and Type | Method and Description |
|---|---|
static GroupRelationType |
of(int intValue) |
GroupRelation |
toRelation(Long id) |
static GroupRelationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GroupRelationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GroupRelationType MEMBER_USER
public static final GroupRelationType MEMBER_GROUP
public static final GroupRelationType SUPER_GROUP
public static GroupRelationType[] values()
for (GroupRelationType c : GroupRelationType.values()) System.out.println(c);
public static GroupRelationType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static GroupRelationType of(int intValue)
public GroupRelation toRelation(Long id)
Copyright © 2018–2021 Tesler. All rights reserved.