Examples of BytePredicate


Examples of com.carrotsearch.hppc.predicates.BytePredicate

    @Override
    public int retainAll(final ByteLookupContainer c)
    {
        // We know c holds sub-types of byte and we're not modifying c, so go unchecked.
        final ByteContainer c2 = (ByteContainer) c;
        return this.removeAll(new BytePredicate()
        {
            public boolean apply(byte k)
            {
                return !c2.contains(k);
            }
View Full Code Here

Examples of com.carrotsearch.hppc.predicates.BytePredicate

     * and negates the predicate.
     */
    @Override
    public int retainAll(final BytePredicate predicate)
    {
        return removeAll(new BytePredicate()
        {
            public boolean apply(byte value)
            {
                return !predicate.apply(value);
            };
View Full Code Here

Examples of com.carrotsearch.hppc.predicates.BytePredicate

    @Override
    public int removeAll(final ByteLookupContainer c)
    {
        // We know c holds sub-types of byte and we're not modifying c, so go unchecked.
        final ByteContainer c2 = (ByteContainer) c;
        return this.removeAll(new BytePredicate()
        {
            public boolean apply(byte k)
            {
                return c2.contains(k);
            }
View Full Code Here

Examples of com.carrotsearch.hppc.predicates.BytePredicate

    @Override
    public int retainAll(final ByteLookupContainer c)
    {
        // We know c holds sub-types of byte and we're not modifying c, so go unchecked.
        final ByteContainer c2 = (ByteContainer) c;
        return this.removeAll(new BytePredicate()
        {
            public boolean apply(byte k)
            {
                return !c2.contains(k);
            }
View Full Code Here

Examples of com.carrotsearch.hppc.predicates.BytePredicate

     * and negates the predicate.
     */
    @Override
    public int retainAll(final BytePredicate predicate)
    {
        return removeAll(new BytePredicate()
        {
            public boolean apply(byte value)
            {
                return !predicate.apply(value);
            };
View Full Code Here

Examples of com.carrotsearch.hppc.predicates.BytePredicate

    @Override
    public int removeAll(final ByteLookupContainer c)
    {
        // We know c holds sub-types of byte and we're not modifying c, so go unchecked.
        final ByteContainer c2 = (ByteContainer) c;
        return this.removeAll(new BytePredicate()
        {
            public boolean apply(byte k)
            {
                return c2.contains(k);
            }
View Full Code Here

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

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

    public boolean containsAll(ByteIterable source)
    {
        return source.allSatisfy(new BytePredicate()
        {
            public boolean accept(byte value)
            {
                return AbstractLazyByteIterable.this.contains(value);
            }
View Full Code Here

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

        return true;
    }

    public boolean containsAll(ByteIterable source)
    {
        return source.allSatisfy(new BytePredicate()
        {
            public boolean accept(byte each)
            {
                return ByteHashBag.this.contains(each);
            }
View Full Code Here

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

    public boolean retainAll(ByteIterable source)
    {
        int oldSize = this.size();
        final ByteSet sourceSet = source instanceof ByteSet ? (ByteSet) source : source.toSet();
        ByteHashBag retained = this.select(new BytePredicate()
        {
            public boolean accept(byte key)
            {
                return sourceSet.contains(key);
            }
View Full Code Here

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

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

        return this.items.keysView().allSatisfy(new BytePredicate()
        {
            public boolean accept(byte key)
            {
                return ByteHashBag.this.occurrencesOf(key) == bag.occurrencesOf(key);
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.