@Test(expectedExceptions = UnsupportedOperationException.class) public void fieldsShouldBeImmutable() { RankableObjectWithFields r = new RankableObjectWithFields(ANY_OBJECT, ANY_COUNT, ANY_FIELD); List<Object> fields = r.getFields(); fields.remove(0); }
public List<Object> getFields() { return fields; }
RankableObjectWithFields implements Rankable, Serializable { public List<Object> getFields() { return fields; } }
RankableObjectWithFields implements Rankable, Serializable { public List<Object> getFields() { return fields; } RankableObjectWithFields(Object obj, long count, Object... otherFields); }
RankableObjectWithFields implements Rankable, Serializable { public List<Object> getFields() { return fields; } 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 { public List<Object> getFields() { return fields; } 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();  }