Class SourceData

  • All Implemented Interfaces:
    java.util.Map<java.lang.String,​java.lang.Object>, ISourceData

    @StableMinor(version="16.0",
                 sinceVersion="4.0")
    public class SourceData
    extends AbstractSourceData
    The default concrete implementation for the ISourceData. This implementation has a internal HashMap to store the values. It assumes that the data key is equals to a source's field id.
    Since:
    4.0.4
    Version:
    $Revision: 25809 $ $Date: 2023-07-04 15:23:22 -0300 (Tue, 04 Jul 2023) $
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.Map<java.lang.String,​java.lang.Object> dataMap
      The internal data Map that the call are delegated to.
    • Constructor Summary

      Constructors 
      Constructor Description
      SourceData()
      Creates a source data without source associated.
      SourceData​(Source source)
      Creates a source data associated with the given source.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      boolean containsKey​(java.lang.Object key)  
      boolean containsValue​(java.lang.Object value)  
      java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Object>> entrySet()  
      java.lang.Object get​(java.lang.Object key)  
      boolean isEmpty()  
      java.util.Set<java.lang.String> keySet()  
      java.lang.Object put​(java.lang.String key, java.lang.Object value)  
      java.lang.Object remove​(java.lang.Object key)  
      int size()  
      java.lang.String toString()  
      java.util.Collection<java.lang.Object> values()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Field Detail

      • dataMap

        protected final java.util.Map<java.lang.String,​java.lang.Object> dataMap
        The internal data Map that the call are delegated to.
        Since:
        4.0.4
    • Constructor Detail

      • SourceData

        public SourceData​(Source source)
        Creates a source data associated with the given source.
        Parameters:
        source - the source that this data will belong to.
        Since:
        4.0.4
      • SourceData

        public SourceData()
        Creates a source data without source associated.
        Parameters:
        source - the source that this data will belong to.
        Since:
        4.0.4
    • Method Detail

      • clear

        public void clear()
      • containsKey

        public boolean containsKey​(java.lang.Object key)
      • containsValue

        public boolean containsValue​(java.lang.Object value)
      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Object>> entrySet()
      • get

        public java.lang.Object get​(java.lang.Object key)
      • isEmpty

        public boolean isEmpty()
      • keySet

        public java.util.Set<java.lang.String> keySet()
      • put

        public java.lang.Object put​(java.lang.String key,
                                    java.lang.Object value)
      • remove

        public java.lang.Object remove​(java.lang.Object key)
      • size

        public int size()
      • values

        public java.util.Collection<java.lang.Object> values()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object