HERE Android SDK Developer's Guide

PlatformDataItemCollection

The class PlatformDataItemCollection is a member of com.here.android.mpa.pde .

Class Summary

public class PlatformDataItemCollection

   implements java.util.List

extends java.lang.Object

Collection of PlatformDataItem items.

[For complete information, see the section Class Details]

Method Summary

Table 1. Methods in PlatformDataItemCollection
Methods

public void add (int location, PlatformDataItem object)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

public boolean add (PlatformDataItem object)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

public boolean addAll (int location, java.util.Collection <? extends com.here.android.mpa.pde.PlatformDataItem> collection)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

public boolean addAll (java.util.Collection <? extends com.here.android.mpa.pde.PlatformDataItem> collection)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

public void clear ()

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

public boolean contains (Object object)

Tests whether this PlatformDataItemCollection contains the specified object.

public boolean containsAll (Collection collection)

Tests whether this PlatformDataItemCollection contains all objects contained in the specified collection.

public boolean equals (Object o)

Compares the argument to the receiver, and returns true if the specified object is a PlatformDataItemCollection and both PlatformDataItemCollection s contain the same mappings.

public List extract ()

Extracts the underlying raw data to a List of Map objects, each of which corresponds to a single record returned by Platform Data Extension request, which maps attribute name to its value.

public PlatformDataItem get (int location)

Returns the element at the specified location in this PlatformDataItemCollection .

public int hashCode ()

Returns an integer hash code for the receiver.

public int indexOf (Object object)

Searches this PlatformDataItemCollection for the specified object and returns the index of the first occurrence.

public boolean isEmpty ()

Returns whether this PlatformDataItemCollection contains no elements.

public java.util.Iterator <PlatformDataItem> iterator ()

Returns an iterator on the elements of this PlatformDataItemCollection .

public int lastIndexOf (Object object)

Searches this PlatformDataItemCollection for the specified object and returns the index of the last occurrence.

public java.util.ListIterator <PlatformDataItem> listIterator ()

Returns a PlatformDataItemCollection iterator on the elements of this PlatformDataItemCollection .

public java.util.ListIterator <PlatformDataItem> listIterator (int location)

Returns a list iterator on the elements of this PlatformDataItemCollection .

public PlatformDataItem remove (int location)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

public boolean remove (Object object)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

public boolean removeAll (Collection collection)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

public boolean retainAll (Collection collection)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

public PlatformDataItem set (int location, PlatformDataItem object)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

public int size ()

Returns the number of elements in this PlatformDataItemCollection .

public java.util.List <PlatformDataItem> subList (int start, int end)

Returns a PlatformDataItemCollection of the specified portion of this PlatformDataItemCollection from the given start index to the end index minus one.

public Object[] toArray ()

Returns an array containing all elements contained in this PlatformDataItemCollection .

public T[] toArray (T[] array)

Returns an array containing all elements contained in this PlatformDataItemCollection .

Class Details

Collection of PlatformDataItem items. This class implements List interface. Additionally contains methods useful for manipulating the data (filtering, combining etc.).

To avoid overhead when dealing with large data sets, all the items returned by this class and its children are dynamically created on demand. Due to that fact this object and the child objects keep references to their parent object. If you require normal Java behavior, you can obtain regular Java collection of underlying data with extract() method.

Method Details

public void add (int location, PlatformDataItem object)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

Parameters:

  • location

    ignored

  • object

    ignored

public boolean add (PlatformDataItem object)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

Parameters:

  • object

    ignored

public boolean addAll (int location, java.util.Collection <? extends com.here.android.mpa.pde.PlatformDataItem> collection)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

Parameters:

  • location

    ignored

  • collection

    ignored

public boolean addAll (java.util.Collection <? extends com.here.android.mpa.pde.PlatformDataItem> collection)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

Parameters:

  • collection

    ignored

public void clear ()

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

public boolean contains (Object object)

Tests whether this PlatformDataItemCollection contains the specified object.

Parameters:

  • object

    the object to search for.

Returns:

true if object is an element of this PlatformDataItemCollection, false otherwise

public boolean containsAll (Collection collection)

Tests whether this PlatformDataItemCollection contains all objects contained in the specified collection.

Parameters:

  • collection

    the collection of objects

Returns:

true if all objects in the specified collection are elements of this PlatformDataItemCollection, false otherwise.

public boolean equals (Object o)

Compares the argument to the receiver, and returns true if the specified object is a PlatformDataItemCollection and both PlatformDataItemCollection s contain the same mappings.

Parameters:

  • o

Returns:

boolean true if the Object is the same as this Object false if it is different from this Object.

See also:

hashCode()

public List extract ()

Extracts the underlying raw data to a List of Map objects, each of which corresponds to a single record returned by Platform Data Extension request, which maps attribute name to its value.

All the items returned by this class and its children are dynamically created on demand. Due to that fact this object and the child objects keep references to their parent object. If you require normal Java behavior, you can convert this class to regular Java collection with this method.

Returns:

Content of the PlatformDataItemCollection converted to regular Java collection.

public PlatformDataItem get (int location)

Returns the element at the specified location in this PlatformDataItemCollection .

Parameters:

  • location

    the index of the element to return.

Returns:

the element at the specified location.

Throws:

  • IndexOutOfBoundsException

    if location is smaller than 0 or location is greater or equal to size()

public int hashCode ()

Returns an integer hash code for the receiver. Object s which are equal return the same value for this method.

Returns:

the receiver's hash.

See also:

equals(Object)

public int indexOf (Object object)

Searches this PlatformDataItemCollection for the specified object and returns the index of the first occurrence.

Parameters:

  • object

    the object to search for.

Returns:

the index of the first occurrence of the object or -1 if the object was not found.

public boolean isEmpty ()

Returns whether this PlatformDataItemCollection contains no elements.

Returns:

true if this PlatformDataItemCollection has no elements, false otherwise.

See also:

size()

public java.util.Iterator <PlatformDataItem> iterator ()

Returns an iterator on the elements of this PlatformDataItemCollection . The elements are iterated in the same order as they occur in the PlatformDataItemCollection .

Returns:

an iterator on the elements of this PlatformDataItemCollection.

See also:

java.util.Iterator

public int lastIndexOf (Object object)

Searches this PlatformDataItemCollection for the specified object and returns the index of the last occurrence.

Parameters:

  • object

    the object to search for.

Returns:

the index of the last occurrence of the object, or -1 if the object was not found.

public java.util.ListIterator <PlatformDataItem> listIterator ()

Returns a PlatformDataItemCollection iterator on the elements of this PlatformDataItemCollection . The elements are iterated in the same order that they occur in the PlatformDataItemCollection .

Returns:

a PlatformDataItemCollection iterator on the elements of this PlatformDataItemCollection

See also:

java.util.ListIterator

public java.util.ListIterator <PlatformDataItem> listIterator (int location)

Returns a list iterator on the elements of this PlatformDataItemCollection . The elements are iterated in the same order as they occur in the PlatformDataItemCollection . The iteration starts at the specified location.

Parameters:

  • location

    the index at which to start the iteration.

Returns:

a list iterator on the elements of this PlatformDataItemCollection.

Throws:

  • IndexOutOfBoundsException

    if location is less than 0 or greater than list size.

See also:

java.util.ListIterator

public PlatformDataItem remove (int location)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

Parameters:

  • location

    ignored

public boolean remove (Object object)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

Parameters:

  • object

    ignored

public boolean removeAll (Collection collection)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

Parameters:

  • collection

    ignored

public boolean retainAll (Collection collection)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

Parameters:

  • collection

    ignored

public PlatformDataItem set (int location, PlatformDataItem object)

Since this class is immutable, this method only throws UnsupportedOperationException and does not do anything else.

Parameters:

  • location

    ignored

  • object

    ignored

Throws:

  • UnsupportedOperationException

public int size ()

Returns the number of elements in this PlatformDataItemCollection .

Returns:

the number of elements in this PlatformDataItemCollection.

public java.util.List <PlatformDataItem> subList (int start, int end)

Returns a PlatformDataItemCollection of the specified portion of this PlatformDataItemCollection from the given start index to the end index minus one.

Parameters:

  • start

    the index at which to start the sublist.

  • end

    the index one past the end of the sublist.

Returns:

a list of a portion of this PlatformDataItemCollection.

Throws:

  • IndexOutOfBoundsException

    if start is smaller than 0 and start is grater than end, or if end greater than size()

public Object[] toArray ()

Returns an array containing all elements contained in this PlatformDataItemCollection .

Returns:

an array of the elements from this PlatformDataItemCollection.

public T[] toArray (T[] array)

Returns an array containing all elements contained in this PlatformDataItemCollection . If the specified array is large enough to hold the elements, the specified array is used, otherwise an array of the same type is created. If the specified array is used and is larger than this PlatformDataItemCollection , the array element following the collection elements is set to null.

Parameters:

  • array

    the array.

Returns:

an array of the elements from this PlatformDataItemCollection.

Throws:

  • ArrayStoreException

    if the type of an element in this PlatformDataItemCollection cannot be stored in the type of the specified array.

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.