IT. Expert System.

Android Reference

CursorEntityIterator


android.content

Class CursorEntityIterator

  • All Implemented Interfaces:
    EntityIterator, Iterator<Entity>


    public abstract class CursorEntityIterator
    extends Object
    implements EntityIterator
    Abstract implementation of EntityIterator that makes it easy to wrap a cursor that can contain several consecutive rows for an entity.
    • Constructor Summary

      Constructors
      Constructor and Description
      CursorEntityIterator(Cursor cursor)
      Constructor that makes initializes the cursor such that the iterator points to the first Entity, if there are any.
    • Constructor Detail

      • CursorEntityIterator

        public CursorEntityIterator(Cursor cursor)
        Constructor that makes initializes the cursor such that the iterator points to the first Entity, if there are any.
        Parameters:
        cursor - the cursor that contains the rows that make up the entities
    • Method Detail

      • getEntityAndIncrementCursor

        public abstract Entity getEntityAndIncrementCursor(Cursor cursor)
                                                    throws RemoteException
        Returns the entity that the cursor is currently pointing to. This must take care to advance the cursor past this entity. This will never be called if the cursor is at the end.
        Parameters:
        cursor - the cursor that contains the entity rows
        Returns:
        the entity that the cursor is currently pointing to
        Throws:
        RemoteException - if a RemoteException is caught while attempting to build the Entity
      • hasNext

        public final boolean hasNext()
        Returns whether there are more elements to iterate, i.e. whether the iterator is positioned in front of an element.
        Specified by:
        hasNext in interface Iterator<Entity>
        Returns:
        true if there are more elements, false otherwise.
        See Also:
        Iterator.next()
      • next

        public Entity next()
        Returns the next object in the iteration, i.e. returns the element in front of the iterator and advances the iterator by one position.
        Specified by:
        next in interface Iterator<Entity>
        Returns:
        the next object.
        Throws:
        NoSuchElementException - if there are no more elements.
        See Also:
        Iterator.hasNext()
      • remove

        public void remove()
        Description copied from interface: Iterator
        Removes the last object returned by next from the collection. This method can only be called once between each call to next.
        Specified by:
        remove in interface Iterator<Entity>
      • reset

        public final void reset()
        Description copied from interface: EntityIterator
        Reset the iterator back to the beginning.
        Specified by:
        reset in interface EntityIterator
      • close

        public final void close()
        Indicates that this iterator is no longer needed and that any associated resources may be released (such as a SQLite cursor).
        Specified by:
        close in interface EntityIterator


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: 1702 / . Delta: 0.01740 с