@Test public void shouldReturnTheObject() { RankableObjectWithFields r = new RankableObjectWithFields(ANY_OBJECT, ANY_COUNT, ANY_FIELD); Object obj = r.getObject(); assertThat(obj).isEqualTo(ANY_OBJECT); }
@Override public Object getObject() { return obj; }
RankableObjectWithFields implements Rankable, Serializable { @Override public Object getObject() { return obj; } }
RankableObjectWithFields implements Rankable, Serializable { @Override public Object getObject() { return obj; } RankableObjectWithFields(Object obj, long count, Object... otherFields); }
RankableObjectWithFields implements Rankable, Serializable { @Override public Object getObject() { return obj; } RankableObjectWithFields(Object obj, long count, Object... otherFields); static RankableObjectWithFields from(Tuple tuple); @Override Object getObject(); @Override long getCount(); List<Object> getFields(); @Override int compareTo(Rankable other); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override Rankable copy(); }
RankableObjectWithFields implements Rankable, Serializable { @Override public Object getObject() { return obj; } RankableObjectWithFields(Object obj, long count, Object... otherFields); static RankableObjectWithFields from(Tuple tuple); @Override Object getObject(); @Override long getCount(); List<Object> getFields(); @Override int compareTo(Rankable other); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @Override Rankable copy();  }