本文整理汇总了Java中gnu.trove.impl.Constants.DEFAULT_BYTE_NO_ENTRY_VALUE属性的典型用法代码示例。如果您正苦于以下问题:Java Constants.DEFAULT_BYTE_NO_ENTRY_VALUE属性的具体用法?Java Constants.DEFAULT_BYTE_NO_ENTRY_VALUE怎么用?Java Constants.DEFAULT_BYTE_NO_ENTRY_VALUE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类gnu.trove.impl.Constants
的用法示例。
在下文中一共展示了Constants.DEFAULT_BYTE_NO_ENTRY_VALUE属性的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TByteHash
/**
* Creates a new <code>TByteHash</code> instance with a prime
* value at or near the specified capacity and load factor.
*
* @param initialCapacity used to find a prime capacity for the table.
* @param loadFactor used to calculate the threshold over which
* rehashing takes place.
*/
public TByteHash( int initialCapacity, float loadFactor ) {
super(initialCapacity, loadFactor);
no_entry_value = Constants.DEFAULT_BYTE_NO_ENTRY_VALUE;
//noinspection RedundantCast
if ( no_entry_value != ( byte ) 0 ) {
Arrays.fill( _set, no_entry_value );
}
}
示例2: TByteHash
/**
* Creates a new <code>TByteHash</code> instance with the default
* capacity and load factor.
*/
public TByteHash() {
super();
no_entry_value = Constants.DEFAULT_BYTE_NO_ENTRY_VALUE;
//noinspection RedundantCast
if ( no_entry_value != ( byte ) 0 ) {
Arrays.fill( _set, no_entry_value );
}
}
示例3: TByteHash
/**
* Creates a new <code>TByteHash</code> instance whose capacity
* is the next highest prime above <tt>initialCapacity + 1</tt>
* unless that value is already prime.
*
* @param initialCapacity an <code>int</code> value
*/
public TByteHash( int initialCapacity ) {
super( initialCapacity );
no_entry_value = Constants.DEFAULT_BYTE_NO_ENTRY_VALUE;
//noinspection RedundantCast
if ( no_entry_value != ( byte ) 0 ) {
Arrays.fill( _set, no_entry_value );
}
}
示例4: TObjectByteCustomHashMap
/**
* Creates a new <code>TObjectByteHashMap</code> instance with a prime
* capacity equal to or greater than <tt>initialCapacity</tt> and
* with the default load factor.
*
* @param initialCapacity an <code>int</code> value
*/
public TObjectByteCustomHashMap( HashingStrategy<? super K> strategy,
int initialCapacity ) {
super( strategy, initialCapacity );
no_entry_value = Constants.DEFAULT_BYTE_NO_ENTRY_VALUE;
}
示例5: TObjectByteHashMap
/**
* Creates a new <code>TObjectByteHashMap</code> instance with the default
* capacity and load factor.
*/
public TObjectByteHashMap() {
super();
no_entry_value = Constants.DEFAULT_BYTE_NO_ENTRY_VALUE;
}
示例6: TObjectByteCustomHashMap
/**
* Creates a new <code>TObjectByteHashMap</code> instance with the default
* capacity and load factor.
*/
public TObjectByteCustomHashMap( HashingStrategy<? super K> strategy ) {
super( strategy );
no_entry_value = Constants.DEFAULT_BYTE_NO_ENTRY_VALUE;
}
示例7: TObjectByteHashMap
/**
* Creates a new <code>TObjectByteHashMap</code> instance with a prime
* capacity equal to or greater than <tt>initialCapacity</tt> and
* with the default load factor.
*
* @param initialCapacity an <code>int</code> value
*/
public TObjectByteHashMap( int initialCapacity ) {
super( initialCapacity );
no_entry_value = Constants.DEFAULT_BYTE_NO_ENTRY_VALUE;
}
示例8: TByteObjectHashMap
/**
* Creates a new <code>TByteObjectHashMap</code> instance with a prime
* capacity equal to or greater than <tt>initialCapacity</tt> and
* with the default load factor.
*
* @param initialCapacity an <code>int</code> value
*/
public TByteObjectHashMap( int initialCapacity ) {
super( initialCapacity );
no_entry_key = Constants.DEFAULT_BYTE_NO_ENTRY_VALUE;
}