Class AnnotatedImage.CacheKey

java.lang.Object
org.apache.sis.image.AnnotatedImage.CacheKey
Enclosing class:
AnnotatedImage

private static final class AnnotatedImage.CacheKey extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Shape
    The area of interest, or null if none.
    private final Object[]
    Parameter specific to subclass, or null if none.
    private final String
    The property name (never null).
  • Constructor Summary

    Constructors
    Constructor
    Description
    CacheKey(String property, Shape areaOfInterest, Object[] extraParameter)
    Creates a new key for the given property and AOI.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Compares this key with the given object for equality.
    int
    Returns a hash code value for this key.
    Returns a string representation of this key for debugging purpose.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • property

      private final String property
      The property name (never null).
    • areaOfInterest

      private final Shape areaOfInterest
      The area of interest, or null if none.
    • extraParameter

      private final Object[] extraParameter
      Parameter specific to subclass, or null if none.
  • Constructor Details

    • CacheKey

      CacheKey(String property, Shape areaOfInterest, Object[] extraParameter)
      Creates a new key for the given property and AOI.
  • Method Details

    • hashCode

      public int hashCode()
      Returns a hash code value for this key.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Compares this key with the given object for equality.
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Returns a string representation of this key for debugging purpose.
      Overrides:
      toString in class Object