@Test public void cached_indexes() { assertThat(index(1)).isSameAs(index(1)); assertThat(index(123456789)).isNotSameAs(index(123456789)); }
public static NodeId index(Number number) { return index(number.longValue()); }
NodeId implements Comparable<NodeId> { public static NodeId index(Number number) { return index(number.longValue()); } }
NodeId implements Comparable<NodeId> { public static NodeId index(Number number) { return index(number.longValue()); } NodeId(); }
NodeId implements Comparable<NodeId> { public static NodeId index(Number number) { return index(number.longValue()); } NodeId(); static NodeId index(Number number); static IndexId index(long index); static KeyId key(String key); static PropertyId property(String property); static NodeId keyOrIndex(Object object); boolean isIndex(); boolean isKey(); long getIndex(); String getKey(); Object getKeyOrIndex(); abstract NodeId fallbackId(); abstract PropertyPath toPath(PropertyPath parent); }
NodeId implements Comparable<NodeId> { public static NodeId index(Number number) { return index(number.longValue()); } NodeId(); static NodeId index(Number number); static IndexId index(long index); static KeyId key(String key); static PropertyId property(String property); static NodeId keyOrIndex(Object object); boolean isIndex(); boolean isKey(); long getIndex(); String getKey(); Object getKeyOrIndex(); abstract NodeId fallbackId(); abstract PropertyPath toPath(PropertyPath parent); static final NodeId ROOT_ID; static final NodeId ANY; static final NodeId ANY_INDEX; static final NodeId ANY_KEY; static final NodeId ANY_PROPERTY; }