Package org.apache.commons.lang3.builder

Examples of org.apache.commons.lang3.builder.HashCodeBuilder


    }

    @Override
    public int hashCode()
    {
        HashCodeBuilder builder = new HashCodeBuilder(373, 75437)
                .append(metadata)
                .append(deletionInfo());
        for (Cell cell : this)
            builder.append(cell);
        return builder.toHashCode();
    }
View Full Code Here


    return true;
  }

  @Override
  public int hashCode() {
    HashCodeBuilder builder = new HashCodeBuilder();

    boolean present_keyspace = true && (isSetKeyspace());
    builder.append(present_keyspace);
    if (present_keyspace)
      builder.append(keyspace);

    boolean present_name = true && (isSetName());
    builder.append(present_name);
    if (present_name)
      builder.append(name);

    boolean present_column_type = true && (isSetColumn_type());
    builder.append(present_column_type);
    if (present_column_type)
      builder.append(column_type);

    boolean present_comparator_type = true && (isSetComparator_type());
    builder.append(present_comparator_type);
    if (present_comparator_type)
      builder.append(comparator_type);

    boolean present_subcomparator_type = true && (isSetSubcomparator_type());
    builder.append(present_subcomparator_type);
    if (present_subcomparator_type)
      builder.append(subcomparator_type);

    boolean present_comment = true && (isSetComment());
    builder.append(present_comment);
    if (present_comment)
      builder.append(comment);

    boolean present_read_repair_chance = true && (isSetRead_repair_chance());
    builder.append(present_read_repair_chance);
    if (present_read_repair_chance)
      builder.append(read_repair_chance);

    boolean present_column_metadata = true && (isSetColumn_metadata());
    builder.append(present_column_metadata);
    if (present_column_metadata)
      builder.append(column_metadata);

    boolean present_gc_grace_seconds = true && (isSetGc_grace_seconds());
    builder.append(present_gc_grace_seconds);
    if (present_gc_grace_seconds)
      builder.append(gc_grace_seconds);

    boolean present_default_validation_class = true && (isSetDefault_validation_class());
    builder.append(present_default_validation_class);
    if (present_default_validation_class)
      builder.append(default_validation_class);

    boolean present_id = true && (isSetId());
    builder.append(present_id);
    if (present_id)
      builder.append(id);

    boolean present_min_compaction_threshold = true && (isSetMin_compaction_threshold());
    builder.append(present_min_compaction_threshold);
    if (present_min_compaction_threshold)
      builder.append(min_compaction_threshold);

    boolean present_max_compaction_threshold = true && (isSetMax_compaction_threshold());
    builder.append(present_max_compaction_threshold);
    if (present_max_compaction_threshold)
      builder.append(max_compaction_threshold);

    boolean present_key_validation_class = true && (isSetKey_validation_class());
    builder.append(present_key_validation_class);
    if (present_key_validation_class)
      builder.append(key_validation_class);

    boolean present_key_alias = true && (isSetKey_alias());
    builder.append(present_key_alias);
    if (present_key_alias)
      builder.append(key_alias);

    boolean present_compaction_strategy = true && (isSetCompaction_strategy());
    builder.append(present_compaction_strategy);
    if (present_compaction_strategy)
      builder.append(compaction_strategy);

    boolean present_compaction_strategy_options = true && (isSetCompaction_strategy_options());
    builder.append(present_compaction_strategy_options);
    if (present_compaction_strategy_options)
      builder.append(compaction_strategy_options);

    boolean present_compression_options = true && (isSetCompression_options());
    builder.append(present_compression_options);
    if (present_compression_options)
      builder.append(compression_options);

    boolean present_bloom_filter_fp_chance = true && (isSetBloom_filter_fp_chance());
    builder.append(present_bloom_filter_fp_chance);
    if (present_bloom_filter_fp_chance)
      builder.append(bloom_filter_fp_chance);

    boolean present_caching = true && (isSetCaching());
    builder.append(present_caching);
    if (present_caching)
      builder.append(caching);

    boolean present_dclocal_read_repair_chance = true && (isSetDclocal_read_repair_chance());
    builder.append(present_dclocal_read_repair_chance);
    if (present_dclocal_read_repair_chance)
      builder.append(dclocal_read_repair_chance);

    boolean present_populate_io_cache_on_flush = true && (isSetPopulate_io_cache_on_flush());
    builder.append(present_populate_io_cache_on_flush);
    if (present_populate_io_cache_on_flush)
      builder.append(populate_io_cache_on_flush);

    boolean present_memtable_flush_period_in_ms = true && (isSetMemtable_flush_period_in_ms());
    builder.append(present_memtable_flush_period_in_ms);
    if (present_memtable_flush_period_in_ms)
      builder.append(memtable_flush_period_in_ms);

    boolean present_default_time_to_live = true && (isSetDefault_time_to_live());
    builder.append(present_default_time_to_live);
    if (present_default_time_to_live)
      builder.append(default_time_to_live);

    boolean present_speculative_retry = true && (isSetSpeculative_retry());
    builder.append(present_speculative_retry);
    if (present_speculative_retry)
      builder.append(speculative_retry);

    boolean present_triggers = true && (isSetTriggers());
    builder.append(present_triggers);
    if (present_triggers)
      builder.append(triggers);

    boolean present_cells_per_row_to_cache = true && (isSetCells_per_row_to_cache());
    builder.append(present_cells_per_row_to_cache);
    if (present_cells_per_row_to_cache)
      builder.append(cells_per_row_to_cache);

    boolean present_min_index_interval = true && (isSetMin_index_interval());
    builder.append(present_min_index_interval);
    if (present_min_index_interval)
      builder.append(min_index_interval);

    boolean present_max_index_interval = true && (isSetMax_index_interval());
    builder.append(present_max_index_interval);
    if (present_max_index_interval)
      builder.append(max_index_interval);

    boolean present_row_cache_size = true && (isSetRow_cache_size());
    builder.append(present_row_cache_size);
    if (present_row_cache_size)
      builder.append(row_cache_size);

    boolean present_key_cache_size = true && (isSetKey_cache_size());
    builder.append(present_key_cache_size);
    if (present_key_cache_size)
      builder.append(key_cache_size);

    boolean present_row_cache_save_period_in_seconds = true && (isSetRow_cache_save_period_in_seconds());
    builder.append(present_row_cache_save_period_in_seconds);
    if (present_row_cache_save_period_in_seconds)
      builder.append(row_cache_save_period_in_seconds);

    boolean present_key_cache_save_period_in_seconds = true && (isSetKey_cache_save_period_in_seconds());
    builder.append(present_key_cache_save_period_in_seconds);
    if (present_key_cache_save_period_in_seconds)
      builder.append(key_cache_save_period_in_seconds);

    boolean present_memtable_flush_after_mins = true && (isSetMemtable_flush_after_mins());
    builder.append(present_memtable_flush_after_mins);
    if (present_memtable_flush_after_mins)
      builder.append(memtable_flush_after_mins);

    boolean present_memtable_throughput_in_mb = true && (isSetMemtable_throughput_in_mb());
    builder.append(present_memtable_throughput_in_mb);
    if (present_memtable_throughput_in_mb)
      builder.append(memtable_throughput_in_mb);

    boolean present_memtable_operations_in_millions = true && (isSetMemtable_operations_in_millions());
    builder.append(present_memtable_operations_in_millions);
    if (present_memtable_operations_in_millions)
      builder.append(memtable_operations_in_millions);

    boolean present_replicate_on_write = true && (isSetReplicate_on_write());
    builder.append(present_replicate_on_write);
    if (present_replicate_on_write)
      builder.append(replicate_on_write);

    boolean present_merge_shards_chance = true && (isSetMerge_shards_chance());
    builder.append(present_merge_shards_chance);
    if (present_merge_shards_chance)
      builder.append(merge_shards_chance);

    boolean present_row_cache_provider = true && (isSetRow_cache_provider());
    builder.append(present_row_cache_provider);
    if (present_row_cache_provider)
      builder.append(row_cache_provider);

    boolean present_row_cache_keys_to_save = true && (isSetRow_cache_keys_to_save());
    builder.append(present_row_cache_keys_to_save);
    if (present_row_cache_keys_to_save)
      builder.append(row_cache_keys_to_save);

    boolean present_index_interval = true && (isSetIndex_interval());
    builder.append(present_index_interval);
    if (present_index_interval)
      builder.append(index_interval);

    return builder.toHashCode();
  }
View Full Code Here

    }

    @Override
    public int hashCode()
    {
        return new HashCodeBuilder(29, 1597)
            .append(cfId)
            .append(ksName)
            .append(cfName)
            .append(cfType)
            .append(comparator)
View Full Code Here

     *
     * @param array  the array to get a hash code for, {@code null} returns zero
     * @return a hash code for the array
     */
    public static int hashCode(final Object array) {
        return new HashCodeBuilder().append(array).toHashCode();
    }
View Full Code Here

        super(deletedEntity, parentEntity, rootEntity);
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(17, 31).appendSuper(super.hashCode()).append(getParentEntity()).toHashCode();
    }
View Full Code Here

        fParentEntity = parentEntity;
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(77, 103).append(getChangeType()).append(getSignificanceLevel())
                .append(getChangedEntity()).append(getParentEntity()).append(getRootEntity()).toHashCode();
    }
View Full Code Here

        fNewEntity = newEntity;
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(13, 31).appendSuper(super.hashCode()).append(getNewEntity())
                .append(getParentEntity()).toHashCode();
    }
View Full Code Here

        setVersions(new LinkedList<StructureEntityVersion>());
    }

    @Override
    public final int hashCode() {
        return new HashCodeBuilder(11, 19).append(getUniqueName())
                .append(new ArrayList<StructureEntityVersion>(getVersions())).toHashCode();
    }
View Full Code Here

        fNewParentEntity = newParentEntity;
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(17, 31).appendSuper(super.hashCode()).append(getNewEntity())
                .append(getNewParentEntity()).toHashCode();
    }
View Full Code Here

        super(insertedEntity, parentEntity, rootEntity);
    }

    @Override
    public int hashCode() {
        return new HashCodeBuilder(19, 31).appendSuper(super.hashCode()).append(getParentEntity()).toHashCode();
    }
View Full Code Here

TOP

Related Classes of org.apache.commons.lang3.builder.HashCodeBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.