public class NobodyPrincipal extends Object implements Comparable<Object>, Principal
equals
or compareTo
will always be found not equal to the NobodyPrincipal.
Note that this class is not likely to operate correctly in a collection
since the hashCode() and equals() methods are not correlated.Modifier and Type | Field and Description |
---|---|
static String |
NOBODY |
static NobodyPrincipal |
NOBODY_PRINCIPAL |
Constructor and Description |
---|
NobodyPrincipal() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o)
This method always returns 1 to indicate inequality for any argument.
|
boolean |
equals(Object another)
This method always returns 0 to indicate equality for any argument.
|
String |
getName() |
int |
hashCode() |
String |
toString() |
public static final String NOBODY
public static final NobodyPrincipal NOBODY_PRINCIPAL
public int hashCode()
public String toString()
public boolean equals(Object another)
public int compareTo(Object o)
compareTo
in interface Comparable<Object>
Copyright © 2017 JBoss by Red Hat. All rights reserved.