Class SimpleLabeledInstancesImpl

    • Field Summary

      • Fields inherited from class java.util.AbstractList

        modCount
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean add​(LabeledInstance<java.lang.String> instance)  
      void addAllFromJson​(com.fasterxml.jackson.databind.JsonNode jsonNode)  
      void addAllFromJson​(java.io.File jsonFile)  
      void addAllFromJson​(java.lang.String json)  
      boolean equals​(java.lang.Object obj)  
      java.util.ArrayList<java.lang.String> getOccurringLabels()  
      int hashCode()  
      java.lang.String toJson()  
      • Methods inherited from class java.util.ArrayList

        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, toString
      • 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, 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

      • SimpleLabeledInstancesImpl

        public SimpleLabeledInstancesImpl()
      • SimpleLabeledInstancesImpl

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

        public SimpleLabeledInstancesImpl​(com.fasterxml.jackson.databind.JsonNode jsonNode)
      • SimpleLabeledInstancesImpl

        public SimpleLabeledInstancesImpl​(java.io.File jsonFile)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • add

        public boolean add​(LabeledInstance<java.lang.String> instance)
        Specified by:
        add in interface java.util.Collection<LabeledInstance<java.lang.String>>
        Specified by:
        add in interface java.util.List<LabeledInstance<java.lang.String>>
        Overrides:
        add in class java.util.ArrayList<LabeledInstance<java.lang.String>>
      • getOccurringLabels

        public java.util.ArrayList<java.lang.String> getOccurringLabels()
        Specified by:
        getOccurringLabels in interface LabeledInstances<java.lang.String>
      • addAllFromJson

        public void addAllFromJson​(java.lang.String json)
                            throws java.io.IOException
        Specified by:
        addAllFromJson in interface Instances<LabeledInstance<java.lang.String>>
        Throws:
        java.io.IOException
      • addAllFromJson

        public void addAllFromJson​(com.fasterxml.jackson.databind.JsonNode jsonNode)
      • addAllFromJson

        public void addAllFromJson​(java.io.File jsonFile)
                            throws java.io.IOException
        Specified by:
        addAllFromJson in interface Instances<LabeledInstance<java.lang.String>>
        Throws:
        java.io.IOException