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

Examples of com.gs.collections.api.block.procedure.primitive.ByteProcedure


        public <V> ImmutableSet<V> collect(final ByteToObjectFunction<? extends V> function)
        {
            final MutableSet<V> target = UnifiedSet.newSet(this.size());

            this.forEach(new ByteProcedure()
            {
                public void value(byte each)
                {
                    target.add(function.valueOf(each));
                }
View Full Code Here


    public ByteHashSet select(final BytePredicate predicate)
    {
        final ByteHashSet result = new ByteHashSet();

        this.forEach(new ByteProcedure()
        {
            public void value(byte value)
            {
                if (predicate.accept(value))
                {
View Full Code Here

    public MutableByteSet reject(final BytePredicate predicate)
    {
        final MutableByteSet result = new ByteHashSet();

        this.forEach(new ByteProcedure()
        {
            public void value(byte value)
            {
                if (!predicate.accept(value))
                {
View Full Code Here

    public <V> MutableSet<V> collect(final ByteToObjectFunction<? extends V> function)
    {
        final MutableSet<V> target = UnifiedSet.newSet(this.size());

        this.forEach(new ByteProcedure()
        {
            public void value(byte each)
            {
                target.add(function.valueOf(each));
            }
View Full Code Here

        return this;
    }

    public ByteCharHashMap withoutAllKeys(ByteIterable keys)
    {
        keys.forEach(new ByteProcedure()
        {
            public void value(byte key)
            {
                ByteCharHashMap.this.removeKey(key);
            }
View Full Code Here

        public byte[] toArray()
        {
            int size = ByteCharHashMap.this.size();
            final byte[] result = new byte[size];
            ByteCharHashMap.this.forEachKey(new ByteProcedure()
            {
                private int index;

                public void value(byte each)
                {
View Full Code Here

        return this;
    }

    public ByteDoubleHashMap withoutAllKeys(ByteIterable keys)
    {
        keys.forEach(new ByteProcedure()
        {
            public void value(byte key)
            {
                ByteDoubleHashMap.this.removeKey(key);
            }
View Full Code Here

        public byte[] toArray()
        {
            int size = ByteDoubleHashMap.this.size();
            final byte[] result = new byte[size];
            ByteDoubleHashMap.this.forEachKey(new ByteProcedure()
            {
                private int index;

                public void value(byte each)
                {
View Full Code Here

        return this;
    }

    public ByteIntHashMap withoutAllKeys(ByteIterable keys)
    {
        keys.forEach(new ByteProcedure()
        {
            public void value(byte key)
            {
                ByteIntHashMap.this.removeKey(key);
            }
View Full Code Here

        public byte[] toArray()
        {
            int size = ByteIntHashMap.this.size();
            final byte[] result = new byte[size];
            ByteIntHashMap.this.forEachKey(new ByteProcedure()
            {
                private int index;

                public void value(byte each)
                {
View Full Code Here

TOP

Related Classes of com.gs.collections.api.block.procedure.primitive.ByteProcedure

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.