当前位置: 首页>>代码示例>>Java>>正文


Java TCharSet类代码示例

本文整理汇总了Java中gnu.trove.set.TCharSet的典型用法代码示例。如果您正苦于以下问题:Java TCharSet类的具体用法?Java TCharSet怎么用?Java TCharSet使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TCharSet类属于gnu.trove.set包,在下文中一共展示了TCharSet类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: equals

import gnu.trove.set.TCharSet; //导入依赖的package包/类
/** {@inheritDoc) */
public boolean equals( Object other ) {
    if (! ( other instanceof TCharSet ) ) {
        return false;
    }
    final TCharSet that = ( TCharSet ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    for ( int i = _states.length; i-- > 0; ) {
        if ( _states[i] == FULL ) {
            if ( ! that.contains( _set[i] ) ) {
                return false;
            }
        }
    }
    return true;
}
 
开发者ID:JianpingZeng,项目名称:xcc,代码行数:19,代码来源:TCharObjectHashMap.java

示例2: equals

import gnu.trove.set.TCharSet; //导入依赖的package包/类
/** {@inheritDoc} */
public boolean equals( Object other ) {
    if ( ! ( other instanceof TCharSet ) ) {
        return false;
    }
    TCharSet that = ( TCharSet ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    for ( int i = _states.length; i-- > 0; ) {
        if ( _states[i] == FULL ) {
            if ( ! that.contains( _set[i] ) ) {
                return false;
            }
        }
    }
    return true;
}
 
开发者ID:JianpingZeng,项目名称:xcc,代码行数:19,代码来源:TCharHashSet.java

示例3: equals

import gnu.trove.set.TCharSet; //导入依赖的package包/类
/** {@inheritDoc) */
@Override
public boolean equals( Object other ) {
    if (! ( other instanceof TCharSet ) ) {
        return false;
    }
    final TCharSet that = ( TCharSet ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    for ( int i = _states.length; i-- > 0; ) {
        if ( _states[i] == FULL ) {
            if ( ! that.contains( _set[i] ) ) {
                return false;
            }
        }
    }
    return true;
}
 
开发者ID:palantir,项目名称:trove-3.0.3,代码行数:20,代码来源:TCharObjectHashMap.java

示例4: equals

import gnu.trove.set.TCharSet; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public boolean equals( Object other ) {
    if ( ! ( other instanceof TCharSet ) ) {
        return false;
    }
    TCharSet that = ( TCharSet ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    for ( int i = _states.length; i-- > 0; ) {
        if ( _states[i] == FULL ) {
            if ( ! that.contains( _set[i] ) ) {
                return false;
            }
        }
    }
    return true;
}
 
开发者ID:palantir,项目名称:trove-3.0.3,代码行数:20,代码来源:TCharHashSet.java

示例5: equals

import gnu.trove.set.TCharSet; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public boolean equals( Object other ) {
    if ( ! ( other instanceof TCharSet ) ) {
        return false;
    }
    TCharSet that = ( TCharSet ) other;
    if ( that.size() != this.size() ) {
        return false;
    }
    for ( int i = capacity(); i-- > 0; ) {
        if ( _states.get(i) == FULL ) {
            if ( ! that.contains( _set.get( i ) ) ) {
                return false;
            }
        }
    }
    return true;
}
 
开发者ID:palantir,项目名称:trove-3.0.3,代码行数:20,代码来源:TCharOffheapHashSet.java

示例6: readExternal

import gnu.trove.set.TCharSet; //导入依赖的package包/类
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // SET
    _set = ( TCharSet ) in.readObject();
}
 
开发者ID:JianpingZeng,项目名称:xcc,代码行数:10,代码来源:TCharSetDecorator.java

示例7: readExternal

import gnu.trove.set.TCharSet; //导入依赖的package包/类
@Override
public void readExternal( ObjectInput in )
    throws IOException, ClassNotFoundException {

    // VERSION
    in.readByte();

    // SET
    _set = ( TCharSet ) in.readObject();
}
 
开发者ID:palantir,项目名称:trove-3.0.3,代码行数:11,代码来源:TCharSetDecorator.java

示例8: keySet

import gnu.trove.set.TCharSet; //导入依赖的package包/类
/** {@inheritDoc} */
public TCharSet keySet() {
    return new KeyView();
}
 
开发者ID:JianpingZeng,项目名称:xcc,代码行数:5,代码来源:TCharObjectHashMap.java

示例9: keySet

import gnu.trove.set.TCharSet; //导入依赖的package包/类
@Override
public TCharSet keySet() {
    return null;
}
 
开发者ID:ankushs92,项目名称:Browscap4j,代码行数:5,代码来源:TCharObjectSinglentonMap.java

示例10: keySet

import gnu.trove.set.TCharSet; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public TCharSet keySet() {
    return new KeyView();
}
 
开发者ID:palantir,项目名称:trove-3.0.3,代码行数:6,代码来源:TCharObjectHashMap.java

示例11: keySet

import gnu.trove.set.TCharSet; //导入依赖的package包/类
/**
 * Returns a {@link TCharSet} view of the keys contained in this map.
 * The set is backed by the map, so changes to the map are
 * reflected in the set, and vice-versa.  If the map is modified
 * while an iteration over the set is in progress (except through
 * the iterator's own <tt>remove</tt> operation), the results of
 * the iteration are undefined.  The set supports element removal,
 * which removes the corresponding mapping from the map, via the
 * <tt>Iterator.remove</tt>, <tt>Set.remove</tt>,
 * <tt>removeAll</tt>, <tt>retainAll</tt>, and <tt>clear</tt>
 * operations.  It does not support the <tt>add</tt> or <tt>addAll</tt>
 * operations.
 *
 * @return a set view of the keys contained in this map
 */
TCharSet keySet();
 
开发者ID:JianpingZeng,项目名称:xcc,代码行数:17,代码来源:TCharObjectMap.java

示例12: TCharSetDecorator

import gnu.trove.set.TCharSet; //导入依赖的package包/类
/**
 * Creates a wrapper that decorates the specified primitive set.
 *
 * @param set the <tt>TCharSet</tt> to wrap.
 */
public TCharSetDecorator( TCharSet set ) {
    super();
    this._set = set;
}
 
开发者ID:JianpingZeng,项目名称:xcc,代码行数:10,代码来源:TCharSetDecorator.java

示例13: getSet

import gnu.trove.set.TCharSet; //导入依赖的package包/类
/**
 * Returns a reference to the set wrapped by this decorator.
 *
 * @return the wrapped <tt>TCharSet</tt> instance.
 */
public TCharSet getSet() {
    return _set;
}
 
开发者ID:JianpingZeng,项目名称:xcc,代码行数:9,代码来源:TCharSetDecorator.java


注:本文中的gnu.trove.set.TCharSet类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。