com.j_spaces.core.filters
Class GenericPrincipal.Attribute

java.lang.Object
  extended by com.j_spaces.core.filters.GenericPrincipal.Attribute
All Implemented Interfaces:
Serializable
Enclosing class:
GenericPrincipal

public static class GenericPrincipal.Attribute
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
 String name
           
 Object value
           
 
Constructor Summary
GenericPrincipal.Attribute()
           
GenericPrincipal.Attribute(String name, Object value)
           
 
Method Summary
 boolean equals(Object o)
          Returns true if names of the attributes are the same.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public String name

value

public Object value
Constructor Detail

GenericPrincipal.Attribute

public GenericPrincipal.Attribute()

GenericPrincipal.Attribute

public GenericPrincipal.Attribute(String name,
                                  Object value)
Method Detail

equals

public boolean equals(Object o)
Returns true if names of the attributes are the same.

Overrides:
equals in class Object
Parameters:
o - another Attribute instance
Returns:
if the two Attribute instances are the same

hashCode

public int hashCode()
Overrides:
hashCode in class Object
Returns:
the value hashCode

toString

public String toString()
Overrides:
toString in class Object
Returns:
"Attribute{name=" + name + ", value=" + value + '}'