@Override public int hashCode() { int result = itemId != null ? itemId.hashCode() : 0; result = 31 * result + lastPrice; result = 31 * result + lastBid; result = 31 * result + (state != null ? state.hashCode() : 0); return result; }
public static String textFor(SniperState state) { return STATUS_TEXT[state.ordinal()]; }
public SniperSnapshot closed() { return new SniperSnapshot(itemId, lastPrice, lastBid, state.whenAuctionClosed()); }