All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.phloc.json.IJSONReadable Maven / Gradle / Ivy

There is a newer version: 4.2.2
Show newest version
package com.phloc.json;

import javax.annotation.Nonnull;

/**
 * Interface for objects that can read their state from a JSON object. Generally
 * you will have a public Ctor not doing anything except calling this
 * 
 * @author Boris Gregorcic
 */
public interface IJSONReadable
{
  /**
   * Reads all data from the passed JSON objects and restores the state of this
   * object
   * 
   * @param aJSON
   *        the JSON from which to restore the state
   */
  void readFromJSON (@Nonnull IJSONObject aJSON);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy