Class GenericObject

  • All Implemented Interfaces:
    java.lang.Comparable

    public class GenericObject
    extends java.lang.Object
    implements java.lang.Comparable
    • Constructor Detail

      • GenericObject

        public GenericObject​(GenericClass clazz)
    • Method Detail

      • set

        public void set​(int index,
                        java.lang.Object value)
      • get

        public java.lang.Object get​(int index)
        Parameters:
        index -
        Returns:
        the value of the field at index, based on the fields obtained GenericClass.getDeclaredFields
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(java.lang.Object o)
        Specified by:
        compareTo in interface java.lang.Comparable