本文整理汇总了Java中java.util.List.hashCode方法的典型用法代码示例。如果您正苦于以下问题:Java List.hashCode方法的具体用法?Java List.hashCode怎么用?Java List.hashCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类java.util.List
的用法示例。
在下文中一共展示了List.hashCode方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: hashCode
import java.util.List; //导入方法依赖的package包/类
@Override
public int hashCode() {
List<Object> list = new ArrayList<Object>();
boolean present_success = true && (isSetSuccess());
list.add(present_success);
if (present_success)
list.add(success);
boolean present_io = true && (isSetIo());
list.add(present_io);
if (present_io)
list.add(io);
return list.hashCode();
}
示例2: hashCode
import java.util.List; //导入方法依赖的package包/类
@Override
public int hashCode() {
List<Object> list = new ArrayList<Object>();
boolean present_tableName = true && (isSetTableName());
list.add(present_tableName);
if (present_tableName)
list.add(tableName);
boolean present_row = true && (isSetRow());
list.add(present_row);
if (present_row)
list.add(row);
boolean present_column = true && (isSetColumn());
list.add(present_column);
if (present_column)
list.add(column);
boolean present_attributes = true && (isSetAttributes());
list.add(present_attributes);
if (present_attributes)
list.add(attributes);
return list.hashCode();
}
示例3: hashCode
import java.util.List; //导入方法依赖的package包/类
@Override
public int hashCode() {
List<Object> list = new ArrayList<Object>();
boolean present_hostName = true && (isSetHostName());
list.add(present_hostName);
if (present_hostName)
list.add(hostName);
boolean present_port = true && (isSetPort());
list.add(present_port);
if (present_port)
list.add(port);
boolean present_startCode = true && (isSetStartCode());
list.add(present_startCode);
if (present_startCode)
list.add(startCode);
return list.hashCode();
}
示例4: hashCode
import java.util.List; //导入方法依赖的package包/类
@Override
public int hashCode() {
List<Object> list = new ArrayList<Object>();
boolean present_family = true && (isSetFamily());
list.add(present_family);
if (present_family)
list.add(family);
boolean present_qualifier = true && (isSetQualifier());
list.add(present_qualifier);
if (present_qualifier)
list.add(qualifier);
boolean present_timestamp = true && (isSetTimestamp());
list.add(present_timestamp);
if (present_timestamp)
list.add(timestamp);
return list.hashCode();
}
示例5: hashCode
import java.util.List; //导入方法依赖的package包/类
@Override
public int hashCode() {
List<Object> list = new ArrayList<Object>();
boolean present_row = true && (isSetRow());
list.add(present_row);
if (present_row)
list.add(row);
boolean present_mutations = true && (isSetMutations());
list.add(present_mutations);
if (present_mutations)
list.add(mutations);
return list.hashCode();
}
示例6: SubscriberEvent
import java.util.List; //导入方法依赖的package包/类
public SubscriberEvent(@NonNull Object target,
@NonNull List<SourceMethod> methodList,
@NonNull EventThread observeThread,
@NonNull EventThread subscribeThread) {
this.target = target;
this.methodList = methodList;
this.observeThread = observeThread;
this.subscribeThread = subscribeThread;
for (SourceMethod sourceMethod : methodList) {
sourceMethod.method.setAccessible(true);
}
initObservable();
// Compute hash code eagerly since we know it will be used frequently and we cannot estimate the runtime of the
// target's hashCode call.
final int prime = 31;
hashCode = (prime + methodList.hashCode()) * prime + target.hashCode();
}
示例7: hashCode
import java.util.List; //导入方法依赖的package包/类
@Override
public int hashCode() {
List<Object> list = new ArrayList<Object>();
boolean present_message = true && (isSetMessage());
list.add(present_message);
if (present_message)
list.add(message);
return list.hashCode();
}
示例8: hc
import java.util.List; //导入方法依赖的package包/类
private int hc(List<String> a) {
if (a.isEmpty()) return a.hashCode();
return a.get(0).hashCode() ^ new HashSet<>(a).hashCode();
}
示例9: hashCode
import java.util.List; //导入方法依赖的package包/类
@Override
public int hashCode() {
List<Object> list = new ArrayList<Object>();
boolean present_regionId = true;
list.add(present_regionId);
if (present_regionId)
list.add(regionId);
boolean present_tableName = true && (isSetTableName());
list.add(present_tableName);
if (present_tableName)
list.add(tableName);
boolean present_startKey = true && (isSetStartKey());
list.add(present_startKey);
if (present_startKey)
list.add(startKey);
boolean present_endKey = true && (isSetEndKey());
list.add(present_endKey);
if (present_endKey)
list.add(endKey);
boolean present_offline = true && (isSetOffline());
list.add(present_offline);
if (present_offline)
list.add(offline);
boolean present_split = true && (isSetSplit());
list.add(present_split);
if (present_split)
list.add(split);
boolean present_replicaId = true && (isSetReplicaId());
list.add(present_replicaId);
if (present_replicaId)
list.add(replicaId);
return list.hashCode();
}