@Test public void testEquality() { new EqualsTester().addEqualityGroup(MastershipTerm.of(N1, 0), TERM1) .addEqualityGroup(TERM2, TERM3) .addEqualityGroup(TERM4) .testEquals(); }
public static MastershipTerm of(NodeId master, long term) { return new MastershipTerm(master, term); }
MastershipTerm { public static MastershipTerm of(NodeId master, long term) { return new MastershipTerm(master, term); } }
MastershipTerm { public static MastershipTerm of(NodeId master, long term) { return new MastershipTerm(master, term); } private  MastershipTerm(NodeId master, long term); }
MastershipTerm { public static MastershipTerm of(NodeId master, long term) { return new MastershipTerm(master, term); } private  MastershipTerm(NodeId master, long term); static MastershipTerm of(NodeId master, long term); NodeId master(); long termNumber(); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString(); }
MastershipTerm { public static MastershipTerm of(NodeId master, long term) { return new MastershipTerm(master, term); } private  MastershipTerm(NodeId master, long term); static MastershipTerm of(NodeId master, long term); NodeId master(); long termNumber(); @Override int hashCode(); @Override boolean equals(Object other); @Override String toString();  }