コード例 #1
0
ファイル: BaseDataBuffer.java プロジェクト: evaleen/nd4j
 @Override
 public int hashCode() {
   int result = length;
   result = 31 * result + (referencing != null ? referencing.hashCode() : 0);
   result = 31 * result + (ref != null ? ref.hashCode() : 0);
   result = 31 * result + (isPersist ? 1 : 0);
   result = 31 * result + (allocationMode != null ? allocationMode.hashCode() : 0);
   return result;
 }
コード例 #2
0
 @Override
 public int hashCode() {
   int result = cl != null ? cl.hashCode() : 0;
   result = 31 * result + (transport != null ? transport.hashCode() : 0);
   result = 31 * result + (globalJmxStatistics != null ? globalJmxStatistics.hashCode() : 0);
   result = 31 * result + (serialization != null ? serialization.hashCode() : 0);
   result = 31 * result + (asyncTransportExecutor != null ? asyncTransportExecutor.hashCode() : 0);
   result = 31 * result + (asyncListenerExecutor != null ? asyncListenerExecutor.hashCode() : 0);
   result = 31 * result + (remoteCommandsExecutor != null ? remoteCommandsExecutor.hashCode() : 0);
   result =
       31 * result
           + (evictionScheduledExecutor != null ? evictionScheduledExecutor.hashCode() : 0);
   result =
       31 * result
           + (replicationQueueScheduledExecutor != null
               ? replicationQueueScheduledExecutor.hashCode()
               : 0);
   result = 31 * result + (shutdown != null ? shutdown.hashCode() : 0);
   result = 31 * result + (site != null ? site.hashCode() : 0);
   result = 31 * result + (totalOrderExecutor != null ? totalOrderExecutor().hashCode() : 0);
   return result;
 }