コード例 #1
0
 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();
 }
コード例 #2
0
 private synchronized void readObject(ObjectInputStream inputStream)
     throws IOException, ClassNotFoundException {
   inputStream.defaultReadObject();
   table = new HashIndexTable();
   updateHashIndex();
 }