@Embeddable public final class Role extends Object implements Serializable, Comparable<Role>
Constructor and Description |
---|
Role(String name)
Deprecated.
use
of(String) instead. |
@Deprecated public Role(String name)
of(String)
instead.Role
instance with the given name.name
- the name of the Role, must not be null or empty.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>
@Generated(value="lombok") public String getName()
@Generated(value="lombok") public boolean equals(Object o)
@Generated(value="lombok") public int hashCode()
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.