| Modifier and Type | Field and Description |
|---|---|
| private final PathSpec | |
| private final MatchedResource | |
| private final E |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(MappedResource<E>
the object to be compared. other)Implements java. Comparison is based solely on the pathSpec |
| public boolean | equals(Object
object to be compared for equality with this map entry obj)Overrides java. Implements java. Compares the specified object with this entry for equality. |
| public PathSpec | |
| public PathSpec | |
| public MatchedResource | |
| public E | |
| public E | |
| public int | hashCode()
Overrides java. Implements java. Returns the hash code value for this map entry. |
| public E | setValue(E
new value to be stored in this entry value)Implements java. Replaces the value corresponding to this entry with the specified value (optional operation). |
| public String |
| pathSpec | back to summary |
|---|---|
| private final PathSpec pathSpec | |
| preMatched | back to summary |
|---|---|
| private final MatchedResource<E> preMatched | |
| resource | back to summary |
|---|---|
| private final E resource | |
| MappedResource | back to summary |
|---|---|
| public MappedResource(PathSpec pathSpec, E resource) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(MappedResource<E> other) Implements java. Comparison is based solely on the pathSpec
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Implements java. Doc from java. Compares the specified object with this entry for equality.
Returns
(e1.getKey()==null ?
e2.getKey()==null : e1.getKey().equals(e2.getKey())) &&
(e1.getValue()==null ?
e2.getValue()==null : e1.getValue().equals(e2.getValue()))
This ensures that the equals method works properly across
different implementations of the Map.Entry interface.
| |
| getKey | back to summary |
|---|---|
| public PathSpec getKey() Implements java. Doc from java. Returns the key corresponding to this entry. | |
| getPathSpec | back to summary |
|---|---|
public PathSpec getPathSpec()
| |
| getPreMatched | back to summary |
|---|---|
public MatchedResource
| |
| getResource | back to summary |
|---|---|
public E getResource()
| |
| getValue | back to summary |
|---|---|
| public E getValue() Implements java. Doc from java. Returns the value corresponding to this entry. If the mapping
has been removed from the backing map (by the iterator's
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Implements java. Doc from java. Returns the hash code value for this map entry. The hash code
of a map entry
(e.getKey()==null ? 0 : e.getKey().hashCode()) ^
(e.getValue()==null ? 0 : e.getValue().hashCode())
This ensures that e1.equals(e2) implies that
e1.hashCode()==e2.hashCode() for any two Entries
e1 and e2, as required by the general
contract of Object.hashCode.
| |
| setValue | back to summary |
|---|---|
| public E setValue(E value) Implements java. Doc from java. Replaces the value corresponding to this entry with the specified
value (optional operation). (Writes through to the map.) The
behavior of this call is undefined if the mapping has already been
removed from the map (by the iterator's
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |