Java Code Examples for java.util.List.hashCode()

The following are Jave code examples for showing how to use hashCode() of the java.util.List class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: ditb   File: THBaseService.java   View Source Code Vote up 6 votes
@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();
}
 
Example 2
Project: ditb   File: Hbase.java   View Source Code Vote up 6 votes
@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();
}
 
Example 3
Project: ditb   File: Hbase.java   View Source Code Vote up 6 votes
@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_attributes = true && (isSetAttributes());
  list.add(present_attributes);
  if (present_attributes)
    list.add(attributes);

  return list.hashCode();
}
 
Example 4
Project: ditb   File: THBaseService.java   View Source Code Vote up 6 votes
@Override
public int hashCode() {
  List<Object> list = new ArrayList<Object>();

  boolean present_table = true && (isSetTable());
  list.add(present_table);
  if (present_table)
    list.add(table);

  boolean present_tputs = true && (isSetTputs());
  list.add(present_tputs);
  if (present_tputs)
    list.add(tputs);

  return list.hashCode();
}
 
Example 5
Project: ditb   File: TServerName.java   View Source Code Vote up 6 votes
@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();
}
 
Example 6
Project: ditb   File: THBaseService.java   View Source Code Vote up 6 votes
@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();
}
 
Example 7
Project: ditb   File: THBaseService.java   View Source Code Vote up 6 votes
@Override
public int hashCode() {
  List<Object> list = new ArrayList<Object>();

  boolean present_table = true && (isSetTable());
  list.add(present_table);
  if (present_table)
    list.add(table);

  boolean present_tput = true && (isSetTput());
  list.add(present_tput);
  if (present_tput)
    list.add(tput);

  return list.hashCode();
}
 
Example 8
Project: ditb   File: Hbase.java   View Source Code Vote up 6 votes
@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();
}
 
Example 9
Project: ditb   File: TColumn.java   View Source Code Vote up 6 votes
@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();
}
 
Example 10
Project: ditb   File: Hbase.java   View Source Code Vote up 6 votes
@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();
}
 
Example 11
Project: ditb   File: TRowMutations.java   View Source Code Vote up 6 votes
@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();
}
 
Example 12
Project: RxBusLib   File: SubscriberEvent.java   View Source Code Vote up 6 votes
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();
}
 
Example 13
Project: ditb   File: THBaseService.java   View Source Code Vote up 6 votes
@Override
public int hashCode() {
  List<Object> list = new ArrayList<Object>();

  boolean present_table = true && (isSetTable());
  list.add(present_table);
  if (present_table)
    list.add(table);

  boolean present_tincrement = true && (isSetTincrement());
  list.add(present_tincrement);
  if (present_tincrement)
    list.add(tincrement);

  return list.hashCode();
}
 
Example 14
Project: ditb   File: Hbase.java   View Source Code Vote up 5 votes
@Override
public int hashCode() {
  List<Object> list = new ArrayList<Object>();

  boolean present_io = true && (isSetIo());
  list.add(present_io);
  if (present_io)
    list.add(io);

  return list.hashCode();
}
 
Example 15
Project: ditb   File: Hbase.java   View Source Code Vote up 5 votes
@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);

  return list.hashCode();
}
 
Example 16
Project: ditb   File: Hbase.java   View Source Code Vote up 5 votes
@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_numVersions = true;
  list.add(present_numVersions);
  if (present_numVersions)
    list.add(numVersions);

  boolean present_attributes = true && (isSetAttributes());
  list.add(present_attributes);
  if (present_attributes)
    list.add(attributes);

  return list.hashCode();
}
 
Example 17
Project: ditb   File: Hbase.java   View Source Code Vote up 5 votes
@Override
public int hashCode() {
  List<Object> list = new ArrayList<Object>();

  boolean present_io = true && (isSetIo());
  list.add(present_io);
  if (present_io)
    list.add(io);

  return list.hashCode();
}
 
Example 18
Project: ditb   File: IllegalArgument.java   View Source Code Vote up 5 votes
@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();
}
 
Example 19
Project: vertx-acme4j   File: AcmeConfig.java   View Source Code Vote up 4 votes
private int hc(List<String> a) {
    if (a.isEmpty()) return a.hashCode();
    return a.get(0).hashCode() ^ new HashSet<>(a).hashCode();
}
 
Example 20
Project: ditb   File: THRegionInfo.java   View Source Code Vote up 4 votes
@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();
}