public class AnybodyPrincipal extends Object implements Comparable<Object>, Principal
equals or compareTo 
will always be found equals to the AnybodyPrincipal.
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 | 
ANYBODY  | 
static AnybodyPrincipal | 
ANYBODY_PRINCIPAL  | 
| Constructor and Description | 
|---|
AnybodyPrincipal()  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
compareTo(Object o)
This method always returns 0 to indicate equality 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 ANYBODY
public static final AnybodyPrincipal ANYBODY_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.