Class AbstractArrayMorpher

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean useDefault  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int[] createDimensions​(int length, int initial)
      Creates an array representing the dimensions for comversion.
      protected int getDimensions​(java.lang.Class arrayClass)
      Returns the number of dimensions in an array class.
      boolean isUseDefault()
      Returns if this morpher will use a default value.
      void setUseDefault​(boolean useDefault)
      Sets if this morpher will use a default value.
      boolean supports​(java.lang.Class clazz)
      Returns true if the Morpher supports conversion from this Class.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • useDefault

        private boolean useDefault
    • Constructor Detail

      • AbstractArrayMorpher

        public AbstractArrayMorpher()
      • AbstractArrayMorpher

        public AbstractArrayMorpher​(boolean useDefault)
        Parameters:
        useDefault - if morph() should return a default value if the value to be morphed is null
    • Method Detail

      • isUseDefault

        public boolean isUseDefault()
        Returns if this morpher will use a default value.
      • setUseDefault

        public void setUseDefault​(boolean useDefault)
        Sets if this morpher will use a default value.
      • supports

        public boolean supports​(java.lang.Class clazz)
        Description copied from interface: Morpher
        Returns true if the Morpher supports conversion from this Class.
        Specified by:
        supports in interface Morpher
        Parameters:
        clazz - the source Class
        Returns:
        true if clazz is supported by this morpher, false otherwise.
      • createDimensions

        protected int[] createDimensions​(int length,
                                         int initial)
        Creates an array representing the dimensions for comversion.
      • getDimensions

        protected int getDimensions​(java.lang.Class arrayClass)
        Returns the number of dimensions in an array class.