Class SerializableField

    • Constructor Detail

      • SerializableField

        public SerializableField​(Field field)
        constructs a new SerializableField.
        Parameters:
        field - Field; The field
      • SerializableField

        public SerializableField​(Class<?> clazz,
                                 String fieldName)
                          throws NoSuchFieldException
        constructs a new SerializableField.
        Parameters:
        clazz - Class<?>; the clazz this field is instance of
        fieldName - String; the name of the field
        Throws:
        NoSuchFieldException - whenever the field is not defined in clazz
    • Method Detail

      • deSerialize

        public Field deSerialize()
        deserializes the field.
        Returns:
        the Field