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 synchronized void readObject(ObjectInputStream inputStream) throws IOException, ClassNotFoundException { inputStream.defaultReadObject(); table=new HashIndexTable(); updateHashIndex(); }