Пример #1
0
 @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;
 }
Пример #2
0
 public static String textFor(SniperState state) {
   return STATUS_TEXT[state.ordinal()];
 }
Пример #3
0
 public SniperSnapshot closed() {
   return new SniperSnapshot(itemId, lastPrice, lastBid, state.whenAuctionClosed());
 }