@Test public void testHasIndex() { String object = "foo"; assertThat(new ObjectProperty(object).hasIndex(), is(false)); assertThat(new ObjectProperty(object, "chars").hasIndex(), is(false)); assertThat(new ObjectProperty(object, "chars", 1).hasIndex(), is(true)); }
public boolean hasIndex() { return index >= 0; }
ObjectProperty implements Serializable { public boolean hasIndex() { return index >= 0; } }
ObjectProperty implements Serializable { public boolean hasIndex() { return index >= 0; } ObjectProperty(Object object, @CheckForNull String property, int index);  ObjectProperty(Object object, String property);  ObjectProperty(Object object); }
ObjectProperty implements Serializable { public boolean hasIndex() { return index >= 0; } ObjectProperty(Object object, @CheckForNull String property, int index);  ObjectProperty(Object object, String property);  ObjectProperty(Object object); Object getObject(); @CheckForNull String getProperty(); int getIndex(); boolean hasIndex(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
ObjectProperty implements Serializable { public boolean hasIndex() { return index >= 0; } ObjectProperty(Object object, @CheckForNull String property, int index);  ObjectProperty(Object object, String property);  ObjectProperty(Object object); Object getObject(); @CheckForNull String getProperty(); int getIndex(); boolean hasIndex(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }