public class SamplePrincipal extends Object implements Principal, Serializable
Principal interface to represents a
Sample Principal.| Constructor and Description |
|---|
SamplePrincipal(String name)
Create a SamplePrincipal with a name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Compares the specified Object with this
SamplePrincipal for
equality. |
String |
getName()
Return the name for this
SamplePrincipal. |
int |
hashCode()
Return a hash code for this
SamplePrincipal. |
String |
toString()
Return a string representation of this
SamplePrincipal. |
public SamplePrincipal(String name)
name - the name for this principal.NullPointerException - if the name is null.public String getName()
SamplePrincipal.public String toString()
SamplePrincipal.public boolean equals(Object object)
SamplePrincipal for
equality.equals in interface Principalequals in class Objectobject - Object to be compared.SamplePrincipal.public int hashCode()
SamplePrincipal.Copyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.