/** * Creates a new empty JsonObject. */ public JsonObject() { names = new ArrayList<String>(); values = new ArrayList<JsonValue>(); table = new HashIndexTable(); }
private JsonObject(JsonObject object, boolean unmodifiable) { if (object == null) { throw new NullPointerException("object is null"); } if (unmodifiable) { names = Collections.unmodifiableList(object.names); values = Collections.unmodifiableList(object.values); } else { names = new ArrayList<String>(object.names); values = new ArrayList<JsonValue>(object.values); } table = new HashIndexTable(); updateHashIndex(); }
private synchronized void readObject(ObjectInputStream inputStream) throws IOException, ClassNotFoundException { inputStream.defaultReadObject(); table = new HashIndexTable(); updateHashIndex(); }
private JsonObject( JsonObject object, boolean unmodifiable ) { if( object == null ) { throw new NullPointerException( "object is null" ); } if( unmodifiable ) { names = Collections.unmodifiableList( object.names ); values = Collections.unmodifiableList( object.values ); } else { names = new ArrayList<String>( object.names ); values = new ArrayList<JsonValue>( object.values ); } table = new HashIndexTable(); updateHashIndex(); }
private JsonObject(JsonObject object, boolean unmodifiable) { if (object == null) { throw new NullPointerException("object is null"); } if (unmodifiable) { names = Collections.unmodifiableList(object.names); values = Collections.unmodifiableList(object.values); } else { names = new ArrayList<String>(object.names); values = new ArrayList<JsonValue>(object.values); } table = new HashIndexTable(); updateHashIndex(); }
private JsonObject(JsonObject object, boolean unmodifiable) { if (object == null) { throw new NullPointerException("object is null"); } if (unmodifiable) { names = Collections.unmodifiableList(object.names); values = Collections.unmodifiableList(object.values); } else { names = new ArrayList<String>(object.names); values = new ArrayList<JsonValue>(object.values); } table = new HashIndexTable(); updateHashIndex(); }
public void copyFrom(JsonObject object) { if (object == null) { throw new NullPointerException("object is null"); } names.clear(); names.addAll(object.names); values.clear(); values.addAll(object.values); table = new HashIndexTable(); updateHashIndex(); }
/** * Creates a new empty JsonObject. */ public JsonObject() { names = new ArrayList<String>(); values = new ArrayList<JsonValue>(); table = new HashIndexTable(); }
/** * Creates a new empty JsonObject. */ public JsonObject() { names = new ArrayList<String>(); values = new ArrayList<JsonValue>(); table = new HashIndexTable(); }
private synchronized void readObject( ObjectInputStream inputStream ) throws IOException, ClassNotFoundException { inputStream.defaultReadObject(); table = new HashIndexTable(); updateHashIndex(); }
private synchronized void readObject(ObjectInputStream inputStream) throws IOException, ClassNotFoundException { inputStream.defaultReadObject(); table = new HashIndexTable(); updateHashIndex(); }
private synchronized void readObject(ObjectInputStream inputStream) throws IOException, ClassNotFoundException { inputStream.defaultReadObject(); table = new HashIndexTable(); updateHashIndex(); }
/** * Creates a new empty JsonObject. */ public JsonObject() { names = new ArrayList<String>(); values = new ArrayList<JsonValue>(); table = new HashIndexTable(); }