IT. Expert System.

Android Reference

FastImmutableArraySet


android.util

Class FastImmutableArraySet<T>

  • All Implemented Interfaces:
    Iterable<T>, Collection<T>, Set<T>


    public final class FastImmutableArraySet<T>
    extends AbstractSet<T>
    A fast immutable set wrapper for an array that is optimized for non-concurrent iteration. The same iterator instance is reused each time to avoid creating lots of garbage. Iterating over an array in this fashion is 2.5x faster than iterating over a HashSet so it is worth copying the contents of the set to an array when iterating over it hundreds of times.
    • Constructor Detail

      • FastImmutableArraySet

        public FastImmutableArraySet(T[] contents)
    • Method Detail

      • iterator

        public Iterator<T> iterator()
        Description copied from class: AbstractCollection
        Returns an instance of Iterator that may be used to access the objects contained by this Collection. The order in which the elements are returned by the Iterator is not defined unless the instance of the Collection has a defined order. In that case, the elements are returned in that order.

        In this class this method is declared abstract and has to be implemented by concrete Collection implementations.

        Specified by:
        iterator in interface Iterable<T>
        Specified by:
        iterator in interface Collection<T>
        Specified by:
        iterator in interface Set<T>
        Specified by:
        iterator in class AbstractCollection<T>
        Returns:
        an iterator for accessing the Collection contents.
        See Also:
        Iterator
      • size

        public int size()
        Description copied from class: AbstractCollection
        Returns a count of how many objects this Collection contains.

        In this class this method is declared abstract and has to be implemented by concrete Collection implementations.

        Specified by:
        size in interface Collection<T>
        Specified by:
        size in interface Set<T>
        Specified by:
        size in class AbstractCollection<T>
        Returns:
        how many objects this Collection contains, or Integer.MAX_VALUE if there are more than Integer.MAX_VALUE elements in this Collection.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 488 / 158691927. Delta: 0.03913 с