Package org.apache.batik.svggen
Class ClipKey
- java.lang.Object
-
- org.apache.batik.svggen.ClipKey
-
class ClipKey extends java.lang.Object
Inner class used to key clip definitions in a Map. This is needed because we need to test equality on the value of GeneralPath and GeneralPath's equal method does not implement that behavior.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
hashCodeValue
This clip hash code.
-
Constructor Summary
Constructors Constructor Description ClipKey(java.awt.geom.GeneralPath proxiedPath, SVGGeneratorContext gc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object clipKey)
int
hashCode()
-
-
-
Constructor Detail
-
ClipKey
public ClipKey(java.awt.geom.GeneralPath proxiedPath, SVGGeneratorContext gc)
- Parameters:
proxiedPath
- path used as an index in the Map
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- this object's hashcode
-
equals
public boolean equals(java.lang.Object clipKey)
- Overrides:
equals
in classjava.lang.Object
- Parameters:
clipKey
- object to compare- Returns:
- true if equal, false otherwise
-
-