gnu.trove.map.hash.TIntShortHashMap的实例源码

项目:morpheus-core    文件:SparseArrayOfZonedDateTimes.java   
/**
 * Constructor
 * @param length    the length for this array
 */
SparseArrayOfZonedDateTimes(int length,ZonedDateTime defaultValue) {
    super(ZonedDateTime.class,ArrayStyle.SPARSE,false);
    this.length = length;
    this.defaultValue = defaultValue;
    this.defaultValueAsLong = defaultValue != null ? defaultValue.toInstant().toEpochMilli() : nullValue;
    this.defaultZoneId = defaultValue != null ? zoneIdMap1.get(defaultValue.getZone()) : NULL_ZONE;
    this.values = new TIntLongHashMap((int)Math.max(length * 0.5,10d),0.8f,-1,defaultValueAsLong);
    this.zoneIds = new TIntShortHashMap((int)Math.max(length * 0.5,defaultZoneId);
}
项目:monsoon    文件:MetricTable.java   
public MetricTable(int timestampsSize) {
    this.timestampsSize = timestampsSize;
    this.t_bool = new TIntByteHashMap(timestampsSize,1,(byte) -1);
    this.t_16bit = new TIntShortHashMap(timestampsSize,(short) -1);
    this.t_32bit = new TIntIntHashMap(timestampsSize,-1);
    this.t_64bit = new TIntLongHashMap(timestampsSize,-1);
    this.t_dbl = new TIntDoubleHashMap(timestampsSize,-1);
    this.t_str = new TIntIntHashMap(timestampsSize,-1);
    this.t_hist = new TIntObjectHashMap<>(timestampsSize,-1);
    this.t_empty = new TIntHashSet(timestampsSize,-1);
    this.t_other = new TIntObjectHashMap<>(timestampsSize,-1);
}
项目:pre-cu    文件:AutoDeltaIntShortMap.java   
public AutoDeltaIntShortMap() {
    this.changes = new ArrayList<>(5);
    this.container = new TIntShortHashMap();
    this.baselineCommandCount = 0;
}

相关文章

买水果
比较全面的redis工具类
gson 反序列化到多态子类
java 版本的 mb_strwidth
JAVA 反转字符串的最快方法,大概比StringBuffer.reverse()性...
com.google.gson.internal.bind.ArrayTypeAdapter的实例源码...