Class DefaultRecord.Entry

java.lang.Object
org.apache.sis.internal.util.AbstractMapEntry<org.opengis.util.MemberName,Object>
org.apache.sis.util.iso.DefaultRecord.Entry
All Implemented Interfaces:
Map.Entry<org.opengis.util.MemberName,Object>
Enclosing class:
DefaultRecord

private final class DefaultRecord.Entry extends AbstractMapEntry<org.opengis.util.MemberName,Object>
A single entry in the map returned by DefaultRecord.getAttributes(). Operations on this entry delegate to DefaultRecord.locate(MemberName) and DefaultRecord.set(MemberName, Object) methods.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    Index of the record field represented by this entry.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Entry(int index)
    Creates a new entry for the record field at the given index.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opengis.util.MemberName
    Returns the name of the record field contained in this entry.
    Returns the current record field value.
    Sets the record field value and returns the previous value.

    Methods inherited from class org.apache.sis.internal.util.AbstractMapEntry

    equals, hashCode, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • index

      private final int index
      Index of the record field represented by this entry.
  • Constructor Details

    • Entry

      Entry(int index)
      Creates a new entry for the record field at the given index.
  • Method Details

    • getKey

      public org.opengis.util.MemberName getKey()
      Returns the name of the record field contained in this entry.
    • getValue

      public Object getValue()
      Returns the current record field value.
    • setValue

      public Object setValue(Object value)
      Sets the record field value and returns the previous value.
      Specified by:
      setValue in interface Map.Entry<org.opengis.util.MemberName,Object>
      Overrides:
      setValue in class AbstractMapEntry<org.opengis.util.MemberName,Object>
      Parameters:
      value - the new value to be stored in this entry.
      Returns:
      the previous value (may be null).