Package org.apache.batik.svggen
Class ClipKey
- java.lang.Object
-
- org.apache.batik.svggen.ClipKey
-
class ClipKey extends java.lang.ObjectInner 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) inthashCodeValueThis 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 booleanequals(java.lang.Object clipKey)inthashCode()
-
-
-
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:
hashCodein classjava.lang.Object- Returns:
- this object's hashcode
-
equals
public boolean equals(java.lang.Object clipKey)
- Overrides:
equalsin classjava.lang.Object- Parameters:
clipKey- object to compare- Returns:
- true if equal, false otherwise
-
-