Class SimpleLabeledInstanceImpl

  • All Implemented Interfaces:
    Instance, LabeledInstance<java.lang.String>, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.lang.Double>, java.util.Collection<java.lang.Double>, java.util.List<java.lang.Double>, java.util.RandomAccess

    public class SimpleLabeledInstanceImpl
    extends java.util.ArrayList<java.lang.Double>
    implements LabeledInstance<java.lang.String>
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getLabel()  
      int getNumberOfColumns()  
      int hashCode()  
      void setLabel​(java.lang.String label)  
      java.lang.String toJson()  
      java.lang.String toString()  
      • Methods inherited from class java.util.ArrayList

        add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
      • Methods inherited from class java.util.AbstractCollection

        containsAll
      • Methods inherited from class java.lang.Object

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

        parallelStream, removeIf, stream, toArray
      • Methods inherited from interface java.lang.Iterable

        forEach
      • Methods inherited from interface java.util.List

        add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
    • Constructor Detail

      • SimpleLabeledInstanceImpl

        public SimpleLabeledInstanceImpl()
      • SimpleLabeledInstanceImpl

        public SimpleLabeledInstanceImpl​(java.lang.String json)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • SimpleLabeledInstanceImpl

        public SimpleLabeledInstanceImpl​(com.fasterxml.jackson.databind.JsonNode jsonNode)
    • Method Detail

      • toJson

        public java.lang.String toJson()
        Specified by:
        toJson in interface Instance
      • setLabel

        public void setLabel​(java.lang.String label)
        Specified by:
        setLabel in interface LabeledInstance<java.lang.String>
      • getLabel

        public java.lang.String getLabel()
        Specified by:
        getLabel in interface LabeledInstance<java.lang.String>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.util.AbstractCollection<java.lang.Double>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<java.lang.Double>
        Specified by:
        hashCode in interface java.util.List<java.lang.Double>
        Overrides:
        hashCode in class java.util.ArrayList<java.lang.Double>
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface java.util.Collection<java.lang.Double>
        Specified by:
        equals in interface java.util.List<java.lang.Double>
        Overrides:
        equals in class java.util.ArrayList<java.lang.Double>