本文整理汇总了Java中gnu.trove.impl.Constants.DEFAULT_LONG_NO_ENTRY_VALUE属性的典型用法代码示例。如果您正苦于以下问题:Java Constants.DEFAULT_LONG_NO_ENTRY_VALUE属性的具体用法?Java Constants.DEFAULT_LONG_NO_ENTRY_VALUE怎么用?Java Constants.DEFAULT_LONG_NO_ENTRY_VALUE使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类gnu.trove.impl.Constants
的用法示例。
在下文中一共展示了Constants.DEFAULT_LONG_NO_ENTRY_VALUE属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: TObjectLongCustomHashMap
/**
* Creates a new <code>TObjectLongHashMap</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 TObjectLongCustomHashMap( HashingStrategy<? super K> strategy,
int initialCapacity ) {
super( strategy, initialCapacity );
no_entry_value = Constants.DEFAULT_LONG_NO_ENTRY_VALUE;
}
示例2: TLongHash
/**
* Creates a new <code>TLongHash</code> instance with the default
* capacity and load factor.
*/
public TLongHash() {
super();
no_entry_value = Constants.DEFAULT_LONG_NO_ENTRY_VALUE;
//noinspection RedundantCast
if ( no_entry_value != ( long ) 0 ) {
Arrays.fill( _set, no_entry_value );
}
}
示例3: TLongHash
/**
* Creates a new <code>TLongHash</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 TLongHash( int initialCapacity ) {
super( initialCapacity );
no_entry_value = Constants.DEFAULT_LONG_NO_ENTRY_VALUE;
//noinspection RedundantCast
if ( no_entry_value != ( long ) 0 ) {
Arrays.fill( _set, no_entry_value );
}
}
示例4: TObjectLongHashMap
/**
* Creates a new <code>TObjectLongHashMap</code> instance with the default
* capacity and load factor.
*/
public TObjectLongHashMap() {
super();
no_entry_value = Constants.DEFAULT_LONG_NO_ENTRY_VALUE;
}
示例5: TObjectLongCustomHashMap
/**
* Creates a new <code>TObjectLongHashMap</code> instance with the default
* capacity and load factor.
*/
public TObjectLongCustomHashMap( HashingStrategy<? super K> strategy ) {
super( strategy );
no_entry_value = Constants.DEFAULT_LONG_NO_ENTRY_VALUE;
}
示例6: TLongObjectHashMap
/**
* Creates a new <code>TLongObjectHashMap</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 TLongObjectHashMap( int initialCapacity ) {
super( initialCapacity );
no_entry_key = Constants.DEFAULT_LONG_NO_ENTRY_VALUE;
}
示例7: TLongObjectHashMap
/**
* Creates a new <code>TLongObjectHashMap</code> instance with a prime
* capacity equal to or greater than <tt>initialCapacity</tt> and
* with the specified load factor.
*
* @param initialCapacity an <code>int</code> value
* @param loadFactor a <code>float</code> value
*/
public TLongObjectHashMap( int initialCapacity, float loadFactor ) {
super( initialCapacity, loadFactor );
no_entry_key = Constants.DEFAULT_LONG_NO_ENTRY_VALUE;
}