@Embeddable public final class Role extends Object implements Serializable, Comparable<Role>
| Modifier and Type | Method and Description | 
|---|---|
| int | compareTo(Role other) | 
| boolean | equals(Object o) | 
| String | getName()The name of the role. | 
| int | hashCode() | 
| static Role | of(String name)Creates a new  Roleinstance with the given name. | 
| String | toString() | 
public static Role of(String name)
Role instance with the given name.name - the name of the Role, must not be null or empty.public final int compareTo(Role other)
compareTo in interface Comparable<Role>@NonNull @Generated(value="lombok") public String getName()
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") public int hashCode()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.