Documentation of 'com.datumbox.framework.common.dataobjects.FlatDataCollection' Java class
FlatDataCollection
com.datumbox.framework.common.dataobjects

Class FlatDataCollection

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<java.lang.Object>, java.util.Collection<java.lang.Object>


    public class FlatDataCollection
    extends AbstractDataStructureCollection<java.util.Collection<java.lang.Object>>
    implements java.util.Collection<java.lang.Object>
    The FlatDataCollection is a data structure that stores internally a Collection<Object>. The actual implementation of the collection can be Sets, Lists etc and they must store Objects internally. The class provides a set of useful methods to access and modify the contents of the collection.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      FlatDataCollection(java.util.Collection<java.lang.Object> internalData)
      Public constructor which accepts as argument a Collection of Objects.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean add(java.lang.Object e)
      It adds an object in the collection.
      boolean addAll(java.util.Collection<?> c)
      boolean containsAll(java.util.Collection<?> c)
      boolean equals(java.lang.Object o)
      int hashCode()
      java.util.Iterator<java.lang.Object> iterator()
      boolean remove(java.lang.Object o)
      Removes a particular object from the internal data.
      boolean removeAll(java.util.Collection<?> c)
      boolean retainAll(java.util.Collection<?> c)
      <T> T[] toArray(T[] a)
      FlatDataList toFlatDataList()
      Converts the FlatDataCollection to a FlatDataList trying (if possible) not to copy the data.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Collection

        clear, contains, isEmpty, parallelStream, removeIf, size, spliterator, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Constructor Detail

      • FlatDataCollection

        public FlatDataCollection(java.util.Collection<java.lang.Object> internalData)
        Public constructor which accepts as argument a Collection of Objects.
        Parameters:
        internalData -
    • Method Detail

      • remove

        public final boolean remove(java.lang.Object o)
        Removes a particular object from the internal data. It returns a boolean which indicates whether the object was found the collection.
        Specified by:
        remove in interface java.util.Collection<java.lang.Object>
        Parameters:
        o -
        Returns:
      • containsAll

        public boolean containsAll(java.util.Collection<?> c)
        Specified by:
        containsAll in interface java.util.Collection<java.lang.Object>
      • addAll

        public boolean addAll(java.util.Collection<?> c)
        Specified by:
        addAll in interface java.util.Collection<java.lang.Object>
      • removeAll

        public boolean removeAll(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<java.lang.Object>
      • retainAll

        public boolean retainAll(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<java.lang.Object>
      • add

        public final boolean add(java.lang.Object e)
        It adds an object in the collection. It returns a boolean which indicates whether the collection changed as a result of the call.
        Specified by:
        add in interface java.util.Collection<java.lang.Object>
        Parameters:
        e -
        Returns:
      • iterator

        public final java.util.Iterator<java.lang.Object> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<java.lang.Object>
        Specified by:
        iterator in interface java.util.Collection<java.lang.Object>
      • toArray

        public <T> T[] toArray(T[] a)
        Specified by:
        toArray in interface java.util.Collection<java.lang.Object>
      • toFlatDataList

        public final FlatDataList toFlatDataList()
        Converts the FlatDataCollection to a FlatDataList trying (if possible) not to copy the data.
        Returns:
      • equals

        public boolean equals(java.lang.Object o)
        Specified by:
        equals in interface java.util.Collection<java.lang.Object>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<java.lang.Object>
        Overrides:
        hashCode in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.