@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
/** * Returns the {@link AbstractFile} instance mapped onto the given key if there is one, * <code>null</code> otherwise * * @param key key of the file instance to retrieve * @return the {@link AbstractFile} instance mapped onto the given key if there is one, * <code>null</code> otherwise */ public synchronized AbstractFile get(Object key) { return (AbstractFile)hashMap.get(key); }
/** * Returns the {@link Icon} instance mapped onto the given key if there is one, * <code>null</code> otherwise * * @param key key of the icon instance to retrieve * @return the {@link Icon} instance mapped onto the given key if there is one, * <code>null</code> otherwise */ public synchronized Icon get(Object key) { return (Icon)hashMap.get(key); }
/** * @inheritDoc */ public boolean hasItemState(ItemId id) { return items.get(id) != null || stateMgr.hasItemState(id); }
/** * @inheritDoc */ public boolean hasItemState(ItemId id) { return items.get(id) != null || stateMgr.hasItemState(id); }
/** * @inheritDoc */ public synchronized ItemState getItemState(ItemId id) throws NoSuchItemStateException, ItemStateException { ItemState item = (ItemState) items.get(id); if (item == null) { item = stateMgr.getItemState(id); items.put(id, item); } return item; }
/** * @inheritDoc */ public synchronized ItemState getItemState(ItemId id) throws NoSuchItemStateException, ItemStateException { ItemState item = (ItemState) items.get(id); if (item == null) { item = stateMgr.getItemState(id); items.put(id, item); } return item; }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
@Override public int loops(final String loopName) { if (loopName == null) return loops(); else if (this.loopNames.containsKey(loopName)) return ((LabelledCounter) this.loopNames.get(loopName)).count(); else throw new IllegalArgumentException("Loop name not defined: " + loopName); }
/** * Evict some node from the cache. * * @param data data to evict */ public void evict(AbstractNodeData data) { ReferenceMap map = (ReferenceMap) cache.get(data.getId()); if (map != null) { map.remove(data.getPrimaryParentId()); } }
/** * Evict some node from the cache. * * @param data data to evict */ public void evict(AbstractNodeData data) { ReferenceMap map = (ReferenceMap) cache.get(data.getId()); if (map != null) { map.remove(data.getPrimaryParentId()); } }