Class ImageURN

All Implemented Interfaces:
Serializable, Cloneable

public class ImageURN extends FileURN
Image Uniform Resource Naming (URN) instance class, with optional scaling along with options for square or circle display, all processed and cached on the server side. In case of a circle, the image is made transparent as a PNG.
Author:
Christopher Mindus
See Also:
  • Method Details

    • isCircle

      public boolean isCircle()
      Returns if the image is a transparent circle image.
      Returns:
      The circle flag.
    • hashCode

      public final int hashCode()
      Gets the hash code of the instance. The original URN string is not used for this hash code, rather the URN 'NID' and the parameters.
      Overrides:
      hashCode in class FileURN
      Returns:
      A hash code value.
    • equals

      public final boolean equals(Object obj)
      Checks if another URN is equal to this one. The original URN string is not used for this comparison, rather the URN 'NID' and the parameters.
      Overrides:
      equals in class FileURN
      Parameters:
      obj - The other object to compare with.
      Returns:
      true if the URN's are equal, false otherwise.
    • getParamString

      public final String getParamString()
      Gets the parameter string for the URN.toString() method.
      Overrides:
      getParamString in class FileURN
      Returns:
      The parameter string, always non-null.