Package com.gs.collections.impl.list.mutable.primitive

Examples of com.gs.collections.impl.list.mutable.primitive.ByteArrayList


        return true;
    }

    public ImmutableByteList select(BytePredicate predicate)
    {
        ByteArrayList result = new ByteArrayList();
        for (byte item : this.items)
        {
            if (predicate.accept(item))
            {
                result.add(item);
            }
        }
        return result.toImmutable();
    }
View Full Code Here


        return result.toImmutable();
    }

    public ImmutableByteList reject(BytePredicate predicate)
    {
        ByteArrayList result = new ByteArrayList();
        for (byte item : this.items)
        {
            if (!predicate.accept(item))
            {
                result.add(item);
            }
        }
        return result.toImmutable();
    }
View Full Code Here

        return Sets.immutable.of();
    }

    public MutableByteList toList()
    {
        return new ByteArrayList();
    }
View Full Code Here

        return new byte[0];
    }

    public MutableByteList toSortedList()
    {
        return new ByteArrayList();
    }
View Full Code Here

    public ByteList peek(int count)
    {
        this.checkNegativeCount(count);
        if (count == 0)
        {
            return new ByteArrayList(0);
        }
        if (count == 1)
        {
            return ByteArrayList.newListWith(this.element1);
        }
View Full Code Here

    public ByteList peek(int count)
    {
        this.checkNegativeCount(count);
        if (count == 0)
        {
            return new ByteArrayList(0);
        }
        throw new EmptyStackException();
    }
View Full Code Here

        return new byte[0];
    }

    public MutableByteList toSortedList()
    {
        return new ByteArrayList();
    }
View Full Code Here

        return source.isEmpty();
    }

    public MutableByteList toList()
    {
        return new ByteArrayList();
    }
View Full Code Here

        return result;
    }

    public MutableByteList collectByte(ByteFunction<? super T> byteFunction)
    {
        ByteArrayList result = new ByteArrayList(this.size());
        this.forEach(new CollectByteProcedure<T>(byteFunction, result));
        return result;
    }
View Full Code Here

    }

    public ImmutableByteList select(BytePredicate predicate)
    {
        return predicate.accept(this.element1) ? ByteArrayList.newListWith(this.element1).toImmutable()
                : new ByteArrayList().toImmutable();
    }
View Full Code Here

TOP

Related Classes of com.gs.collections.impl.list.mutable.primitive.ByteArrayList

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.