@Override public int hashCode() { int h = 1; h *= 1000003; h ^= (this.id >>> 32) ^ this.id; h *= 1000003; h ^= (data == null) ? 0 : this.data.hashCode(); h *= 1000003; h ^= this.logOnly ? 1231 : 1237; return h; }
@Override public int hashCode() { return this.proto.hashCode(); }
@Override public int hashCode() { return value.hashCode(); }
@Override public int hashCode() { return value.hashCode(); }
@Override public int hashCode() { return this.proto.hashCode(); }
private static final int NUM_PROCESSING_QUEUES = 6; ... ExecutorService[] pools = new ExecutorService[NUM_PROCESSING_QUEUES]; for (int i = 0; i < pools.length; i++) { pools[i] = Executors.newSingleThreadExecutor(); } ... // receiver loop: while (true) { Message message = receiveMessage(); int hash = Math.abs(message.hashCode()); // put each message in the appropriate pool based on its hash // this assumes message is runnable pools[hash % pools.length].submit(message); }
@Override public int hashCode() { return getProto().hashCode(); }
@Override public int hashCode() { return getProto().hashCode(); }
@Override public int hashCode() { return getProto().hashCode(); }
@Override public int hashCode() { int result = primaryKey.hashCode(); result = 31 * result + recordType.getName().hashCode(); result = 31 * result + record.hashCode(); result = 31 * result + keyCount; result = 31 * result + keySize; result = 31 * result + valueSize; if (recordVersion != null) { result = 31 * result + recordVersion.hashCode(); } return result; }
public UnitDataFilteredObservable(final DataProvider<M> dataProvider, final ServiceTempus serviceTempus, final UnitTemplate unitTemplate) { super(dataProvider); this.unit = dataProvider; this.serviceTempus = serviceTempus; this.setHashGenerator((M value) -> removeUnwantedServiceTempus(value.toBuilder()).build().hashCode()); this.fieldsToKeep = new HashSet<>(); this.unitTemplate = unitTemplate; if (unitTemplate != null) { updateFieldsToKeep(); } }
public ServiceDataFilteredObservable(final DataProvider<M> source) { super(source); this.setHashGenerator((M value) -> removeResponsibleActoin(removeTimestamps(value.toBuilder())).build().hashCode()); }