Class Hints.Key

    • Constructor Summary

      Constructors 
      Constructor Description
      Key​(Class<?> classe)
      Constructs a new key for values of the given class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Class<?> getValueClass()
      Returns the expected class for values stored under this key.
      boolean isCompatibleValue​(Object value)
      Returns true if the specified object is a valid value for this key.
      String toString()
      Returns a string representation of this key.
      • Methods inherited from class RenderingHints.Key

        equals, hashCode, intKey
      • Methods inherited from class Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Key

        public Key​(Class<?> classe)
        Constructs a new key for values of the given class.
        Parameters:
        classe - The base class for all valid values.
    • Method Detail

      • getValueClass

        public Class<?> getValueClass()
        Returns the expected class for values stored under this key.
        Returns:
        The class of values stored under this key.
      • toString

        public String toString()
        Returns a string representation of this key. The string representation is mostly for debugging purpose. The default implementation tries to infer the key name using reflection.
        Overrides:
        toString in class Object