public class SubjectMapping
extends java.lang.Object
SubjectMapper
to store the keys and subject mappings passed to its updateMappings
method.Constructor and Description |
---|
SubjectMapping(java.lang.String key,
java.util.Map<java.lang.String,java.lang.String> map)
Creates a new
SubjectMapping using the passed in key and map . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares the passed in object to this
SubjectMapping . |
java.lang.String |
getKey()
Gets the the key that was passed to the constructor.
|
java.util.Map<java.lang.String,java.lang.String> |
getMap()
Gets the subject mappings that were passed to the constructor.
|
int |
hashCode()
Returns a hash code value for this
SubjectMapping . |
java.lang.String |
toString()
Returns a string representation of this
SubjectMapping . |
public SubjectMapping(java.lang.String key, java.util.Map<java.lang.String,java.lang.String> map)
SubjectMapping
using the passed in key
and map
.key
- the key for this SubjectMapping
.map
- the subject mappings for this SubjectMapping
public java.lang.String getKey()
public java.util.Map<java.lang.String,java.lang.String> getMap()
public java.lang.String toString()
SubjectMapping
.toString
in class java.lang.Object
SubjectMapping
, including its key and subject mappings.public int hashCode()
SubjectMapping
. This method is consistent with this class' equals(java.lang.Object)
method, as required by
the general contract of the Object.hashCode()
method.hashCode
in class java.lang.Object
SubjectMapping
Object.hashCode()
public boolean equals(java.lang.Object obj)
SubjectMapping
. Returns true if the objects are equal and false otherwise.equals
in class java.lang.Object
obj
- the object to compare to this SubjectMapping
.obj
is a SubjectMapping
with the same key and subject mappings as this SubjectMapping
.
Otherwise returns false.Please send bug reports and comments to Caplin support