@Test public void testState() { State s = new State(); check(s, 0); s.put("555", null); check(s, 0); s.put("1", "1"); check(s, 1); s.remove("1"); check(s, 0); s.put("1", "1"); check(s, 1); s.put("1", "111"); assertEquals("111", s.get("1")); s.put("1", "1"); check(s, 1); s.put("555", null); check(s, 1); s.put("1", null); check(s, 0); s.put("1", "1"); check(s, 1); s.put("2", "2"); check(s, 2); s.put("3", "3"); check(s, 3); s.put("4", "4"); check(s, 4); s.put("5", "5"); check(s, 5); s.put("6", "6"); check(s, 6); s.put("7", "7"); check(s, 7); s.put("7", null); check(s, 6); }
private State(Map<String, Serializable> map) { this.map = map; }
State implements StateAccessor, Serializable { private State(Map<String, Serializable> map) { this.map = map; } }
State implements StateAccessor, Serializable { private State(Map<String, Serializable> map) { this.map = map; } private  State(Map<String, Serializable> map);  State();  State(boolean threadSafe);  State(int size);  State(int size, boolean threadSafe); }
State implements StateAccessor, Serializable { private State(Map<String, Serializable> map) { this.map = map; } private  State(Map<String, Serializable> map);  State();  State(boolean threadSafe);  State(int size);  State(int size, boolean threadSafe); int size(); boolean isEmpty(); Serializable get(Object key); void put(String key, Serializable value); Serializable remove(Object key); Set<String> keySet(); String[] keyArray(); boolean containsKey(Object key); Set<Entry<String, Serializable>> entrySet(); @Override String toString(); @Override Object getSingle(String name); @Override Object[] getArray(String name); @Override void setSingle(String name, Object value); @Override void setArray(String name, Object[] value); @Override boolean equals(Object other); }
State implements StateAccessor, Serializable { private State(Map<String, Serializable> map) { this.map = map; } private  State(Map<String, Serializable> map);  State();  State(boolean threadSafe);  State(int size);  State(int size, boolean threadSafe); int size(); boolean isEmpty(); Serializable get(Object key); void put(String key, Serializable value); Serializable remove(Object key); Set<String> keySet(); String[] keyArray(); boolean containsKey(Object key); Set<Entry<String, Serializable>> entrySet(); @Override String toString(); @Override Object getSingle(String name); @Override Object[] getArray(String name); @Override void setSingle(String name, Object value); @Override void setArray(String name, Object[] value); @Override boolean equals(Object other); static final int ARRAY_MAX; static final State EMPTY; static final Nop NOP; }