Class ValueTranslatorKey<M,​V>

  • Type Parameters:
    M - the model's type
    V - the view's type

    public class ValueTranslatorKey<M,​V>
    extends java.lang.Object
    The unique key for value translators.
    Author:
    harald
    • Constructor Summary

      Constructors 
      Constructor Description
      ValueTranslatorKey​(java.lang.Class<M> modelClass, java.lang.Class<V> viewClass)
      Creates a translator key.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.Class<M> getModelClass()
      Gets the model's class.
      java.lang.Class<V> getViewClass()
      Gets the view' class.
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • ValueTranslatorKey

        public ValueTranslatorKey​(java.lang.Class<M> modelClass,
                                  java.lang.Class<V> viewClass)
        Creates a translator key.
        Parameters:
        modelClass - the model's type
        viewClass - the view's type
    • Method Detail

      • getModelClass

        public java.lang.Class<M> getModelClass()
        Gets the model's class.
        Returns:
        the class
      • getViewClass

        public java.lang.Class<V> getViewClass()
        Gets the view' class.
        Returns:
        the class
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object