HERE Android SDK Developer's Guide

PlatformDataResult

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

Class Summary

public final class PlatformDataResult

   implements java.util.Map

extends java.lang.Object

Result of the Platform Data Extension request.

[For complete information, see the section Class Details]

See also:

PlatformDataItemCollection

Method Summary

Table 1. Methods in PlatformDataResult
Methods

public void clear ()

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

public boolean containsKey (Object key)

Returns whether this Map contains the specified key.

public boolean containsValue (Object value)

Returns whether this Map contains the specified value.

public java.util.Set <java.util.Map.Entry<java.lang.String<, com.here.android.mpa.pde.PlatformDataItemCollection>> entrySet ()

Returns a Set containing all of the mappings in this Map .

public boolean equals (Object o)

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

public Map extract ()

All the items returned by this class and its children are dynamically created on demand.

public PlatformDataItemCollection get (Object key)

Returns the value of the mapping with the specified key.

public int hashCode ()

Returns an integer hash code for the receiver.

public boolean isEmpty ()

Returns whether this map is empty.

public Set keySet ()

Returns a set of the keys contained in this Map .

public PlatformDataItemCollection put (String key, PlatformDataItemCollection value)

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

public void putAll (java.util.Map <? extends java.lang.String, ? extends com.here.android.mpa.pde.PlatformDataItemCollection> map)

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

public PlatformDataItemCollection remove (Object key)

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

public int size ()

Returns the number of mappings in this Map .

public java.util.Collection <PlatformDataItemCollection> values ()

Returns a Collection of the values contained in this Map .

Class Details

Result of the Platform Data Extension request. Implements Map interface, where the key is the layer name and the value is the PlatformDataItemCollection object, which is a collection of the retrieved items ( PlatformDataItem ) for the given layer. This class is immutable.

The PlatformDataItemCollection objects returned by this class keep reference to PlatformDataResult instance.

See also:

PlatformDataItemCollection

Method Details

public void clear ()

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

public boolean containsKey (Object key)

Returns whether this Map contains the specified key.

Parameters:

  • key

    the key to search for.

Returns:

true if this map contains the specified key, false otherwise.

public boolean containsValue (Object value)

Returns whether this Map contains the specified value.

Parameters:

  • value

    the value to search for.

Returns:

true if this map contains the specified value, false otherwise.

public java.util.Set <java.util.Map.Entry<java.lang.String<, com.here.android.mpa.pde.PlatformDataItemCollection>> entrySet ()

Returns a Set containing all of the mappings in this Map . Each mapping is an instance of Map.Entry.

Returns:

a set of the mappings

public boolean equals (Object o)

Compares the argument to the receiver, and returns true if the specified object is a PlatformDataResult and both PlatformDataResult 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()

entrySet()

public Map extract ()

All the items returned by this class and its children are dynamically created on demand. Due to that fact 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 @{code PlatformDataResult converted to regular Java collection.

public PlatformDataItemCollection get (Object key)

Returns the value of the mapping with the specified key.

Parameters:

  • key

    the key.

Returns:

the value of the mapping with the specified key, or null if no mapping for the specified key is found.

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 boolean isEmpty ()

Returns whether this map is empty.

Returns:

true if this map has no elements, false otherwise.

See also:

size()

public Set keySet ()

Returns a set of the keys contained in this Map .

Returns:

a set of the keys.

public PlatformDataItemCollection put (String key, PlatformDataItemCollection value)

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

Parameters:

  • key

    ignored

  • value

    ignored

public void putAll (java.util.Map <? extends java.lang.String, ? extends com.here.android.mpa.pde.PlatformDataItemCollection> map)

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

Parameters:

  • map

    ignored

public PlatformDataItemCollection remove (Object key)

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

Parameters:

  • key

    ignored

public int size ()

Returns the number of mappings in this Map .

Returns:

the number of mappings in this Map.

public java.util.Collection <PlatformDataItemCollection> values ()

Returns a Collection of the values contained in this Map .

Returns:

a collection of the values contained in this map.