Documentation of 'de.erichseifert.gral.data.Column' Java class
Column
de.erichseifert.gral.data

Class Column<T extends java.lang.Comparable<T>>

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<T>


    public class Column<T extends java.lang.Comparable<T>>
    extends java.lang.Object
    implements java.lang.Iterable<T>, java.io.Serializable

    Class for accessing a specific column of a data source. The data of the column can be accessed using the get(int) method.

    Example for accessing value at column 2, row 3 of a data source:

     Column col = new Column(dataSource, 2);
     Number v = col.get(3);
     
    See Also:
    DataSource, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      Column(java.lang.Class<T> dataType, java.lang.Iterable<T> data) 
      Column(java.lang.Class<T> dataType, T... data) 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj) 
      T get(int row) 
      double getStatistics(java.lang.String key) 
      java.lang.Class<? extends java.lang.Comparable<?>> getType() 
      int hashCode() 
      boolean isNumeric()
      Returns whether this column only contains numbers.
      java.util.Iterator<T> iterator() 
      int size() 
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • Column

        public Column(java.lang.Class<T> dataType,
                      T... data)
      • Column

        public Column(java.lang.Class<T> dataType,
                      java.lang.Iterable<T> data)
    • Method Detail

      • get

        public T get(int row)
      • size

        public int size()
      • isNumeric

        public boolean isNumeric()
        Returns whether this column only contains numbers.
        Returns:
        true if this column is numeric, otherwise false.
      • getType

        public java.lang.Class<? extends java.lang.Comparable<?>> getType()
      • getStatistics

        public double getStatistics(java.lang.String key)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T extends java.lang.Comparable<T>>

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.