Package java.util

Examples of java.util.AbstractCollection


     *
     *  @return a collection view of this map's values.
     */
    public Collection values() {
        if (values != null) return values;
        values = new AbstractCollection()  {
            public int size() {
                return ReferenceMap.this.size();
            }

            public void clear() {
View Full Code Here


    /**
     *  Implements {@link Map#values()}.
     */
    public Collection values() {
        return new AbstractCollection() {
            // required impl
            public Iterator iterator() {
                return new OrderedIterator(VALUE);
            }
            public boolean remove(Object value) {
View Full Code Here

    /**
     * Implements {@link Map#values()}.
     */
    public Collection values() {
        return new AbstractCollection() {
            // required impl
            public Iterator iterator() {
                return new OrderedIterator(VALUE);
            }

View Full Code Here

    /**
     * Implements {@link Map#values()}.
     */
    public Collection values() {
        return new AbstractCollection() {
            // required impl
            public Iterator iterator() {
                return new OrderedIterator(VALUE);
            }

View Full Code Here

     */
    public Collection values() {
        // delegates to entrySet, because super method returns
        // WeakValues instead of value objects
  if (values == null) {
      values = new AbstractCollection() {
    public Iterator iterator() {
        return new Iterator() {
      private Iterator i = entrySet().iterator();

      public boolean hasNext() {
View Full Code Here

  @Override
  public Collection values() {
    if (values != null) {
      return values;
    }
    values = new AbstractCollection() {
      @Override
      public int size() {
        return size;
      }
View Full Code Here

   * @return a collection view of the values contained in this map.
   */
  @Override
  public Collection values() {
    if (values == null) {
      values = new AbstractCollection() {
        @Override
        public Iterator iterator() {
          return new IntHashIterator(VALUES);
        }

View Full Code Here

TOP

Related Classes of java.util.AbstractCollection

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.