@Test public void testHasPath() { QMemory q = DefaultQMemory.create(); assertEquals(0, q.getPaths().size()); q.setDouble("a.b.c.d", 3.14); assertTrue(q.hasPath("a.b.c.d")); q.setString("a.b.c.e", "hello"); assertTrue(q.hasPath("a.b.c.d")); assertTrue(q.hasPath("a.b.c.e")); }
public synchronized boolean hasPath(String path) { return memory.containsKey(path); }
DefaultQMemory implements QMemory { public synchronized boolean hasPath(String path) { return memory.containsKey(path); } }
DefaultQMemory implements QMemory { public synchronized boolean hasPath(String path) { return memory.containsKey(path); } private  DefaultQMemory(); }
DefaultQMemory implements QMemory { public synchronized boolean hasPath(String path) { return memory.containsKey(path); } private  DefaultQMemory(); static QMemory create(); static QMemory create(Identifier id); synchronized boolean hasPath(String path); synchronized double getDouble(String path); synchronized long getInteger(String path); synchronized String getString(String path); synchronized Set<String> getPaths(); @Override QMemory subMemory(String prefix); synchronized void setDouble(String path, double doubleVal); synchronized void setInteger(String path, int intVal); synchronized void setInteger(String path, long longVal); synchronized void setString(String path, String strVal); synchronized void clear(String path); synchronized void remove(String path); @Override void addListener(QMemoryListener listener); @Override void removeListener(QMemoryListener listener); }
DefaultQMemory implements QMemory { public synchronized boolean hasPath(String path) { return memory.containsKey(path); } private  DefaultQMemory(); static QMemory create(); static QMemory create(Identifier id); synchronized boolean hasPath(String path); synchronized double getDouble(String path); synchronized long getInteger(String path); synchronized String getString(String path); synchronized Set<String> getPaths(); @Override QMemory subMemory(String prefix); synchronized void setDouble(String path, double doubleVal); synchronized void setInteger(String path, int intVal); synchronized void setInteger(String path, long longVal); synchronized void setString(String path, String strVal); synchronized void clear(String path); synchronized void remove(String path); @Override void addListener(QMemoryListener listener); @Override void removeListener(QMemoryListener listener);  }