org.deegree.tools.security
Class SecDBCleaner.Right
java.lang.Object
org.deegree.tools.security.SecDBCleaner.Right
- Enclosing class:
- SecDBCleaner
static class SecDBCleaner.Right
- extends java.lang.Object
Field Summary |
(package private) java.lang.String |
constraint
|
(package private) int |
id
|
(package private) int |
right
|
Method Summary |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even
distribution and is relatively fast. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
id
int id
right
int right
constraint
java.lang.String constraint
SecDBCleaner.Right
SecDBCleaner.Right()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Implementation as proposed by Joshua Block in Effective Java (Addison-Wesley 2001), which supplies an even
distribution and is relatively fast. It is created from field f as follows:
- boolean -- code = (f ? 0 : 1)
- byte, char, short, int -- code = (int)f
- long -- code = (int)(f ^ (f >>>32))
- float -- code = Float.floatToIntBits(f);
- double -- long l = Double.doubleToLongBits(f); code = (int)(l ^ (l >>> 32))
- all Objects, (where equals( ) calls equals( ) for this field) -- code = f.hashCode( )
- Array -- Apply above rules to each element
Combining the hash code(s) computed above: result = 37 * result + code;
- Overrides:
hashCode
in class java.lang.Object
- Returns:
- (int) ( result >>> 32 ) ^ (int) result;
- See Also:
Object.hashCode()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org