@Override public Iterable<Edge> getInEdges() { return IterableHelper.select( inlist.entrySet(), new IterableHelper.Map<Map.Entry<Long, Long>, Edge>() { @Override public Edge select(Map.Entry<Long, Long> element) { return new HPseudoEdge(element.getKey(), element.getValue(), id, store); } }); }
@Override public Iterable<LabelValue> getLabels() { return IterableHelper.select( labelsMap.entrySet(), new IterableHelper.Map<Map.Entry<String, byte[]>, LabelValue>() { @Override public LabelValue select(final Entry<String, byte[]> element) { return new LabelValue() { @Override public byte[] getValue() { return element.getValue(); } @Override public String getName() { return element.getKey(); } }; } }); }