Package com.gs.collections.api.block.predicate.primitive

Examples of com.gs.collections.api.block.predicate.primitive.CharPredicate


        return true;
    }

    public boolean containsAll(CharIterable source)
    {
        return source.allSatisfy(new CharPredicate()
        {
            public boolean accept(char value)
            {
                return LongCharHashMap.this.contains(value);
            }
View Full Code Here


     * @deprecated since 3.0.
     */
    @Deprecated
    public static int count(String string, final com.gs.collections.impl.block.predicate.primitive.CharPredicate predicate)
    {
        return StringIterate.count(string, new CharPredicate()
        {
            public boolean accept(char value)
            {
                return predicate.accept(value);
            }
View Full Code Here

    /**
     * Count the number of occurrences of the specified char.
     */
    public static int occurrencesOf(String string, final char value)
    {
        return StringIterate.count(string, new CharPredicate()
        {
            public boolean accept(char character)
            {
                return value == character;
            }
View Full Code Here

        return this.containsAll(CharSets.immutable.of(source));
    }

    public boolean containsAll(CharIterable source)
    {
        return source.allSatisfy(new CharPredicate()
        {
            public boolean accept(char value)
            {
                return AbstractLazyCharIterable.this.contains(value);
            }
View Full Code Here

        return true;
    }

    public boolean containsAll(CharIterable source)
    {
        return source.allSatisfy(new CharPredicate()
        {
            public boolean accept(char each)
            {
                return CharHashBag.this.contains(each);
            }
View Full Code Here

    public boolean retainAll(CharIterable source)
    {
        int oldSize = this.size();
        final CharSet sourceSet = source instanceof CharSet ? (CharSet) source : source.toSet();
        CharHashBag retained = this.select(new CharPredicate()
        {
            public boolean accept(char key)
            {
                return sourceSet.contains(key);
            }
View Full Code Here

        if (this.sizeDistinct() != bag.sizeDistinct())
        {
            return false;
        }

        return this.items.keysView().allSatisfy(new CharPredicate()
        {
            public boolean accept(char key)
            {
                return CharHashBag.this.occurrencesOf(key) == bag.occurrencesOf(key);
            }
View Full Code Here

    public boolean retainAll(CharIterable source)
    {
        int oldSize = this.size();
        final CharSet sourceSet = source instanceof CharSet ? (CharSet) source : source.toSet();
        CharArrayList retained = this.select(new CharPredicate()
        {
            public boolean accept(char value)
            {
                return sourceSet.contains(value);
            }
View Full Code Here

    public boolean retainAll(CharIterable source)
    {
        int oldSize = this.size();
        final CharSet sourceSet = source instanceof CharSet ? (CharSet) source : source.toSet();
        CharHashSet retained = this.select(new CharPredicate()
        {
            public boolean accept(char value)
            {
                return sourceSet.contains(value);
            }
View Full Code Here

        return true;
    }

    public boolean containsAll(CharIterable source)
    {
        return source.allSatisfy(new CharPredicate()
        {
            public boolean accept(char value)
            {
                return DoubleCharHashMap.this.contains(value);
            }
View Full Code Here

TOP

Related Classes of com.gs.collections.api.block.predicate.primitive.CharPredicate

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.