Example usage for org.apache.commons.collections4.list TreeList TreeList

List of usage examples for org.apache.commons.collections4.list TreeList TreeList

Introduction

In this page you can find the example usage for org.apache.commons.collections4.list TreeList TreeList.

Prototype

public TreeList() 

Source Link

Document

Constructs a new empty list.

Usage

From source file:at.tugraz.iaik.magnum.client.util.datatypes.SortedList.java

public SortedList() {
    this.list = new TreeList<>();
}

From source file:Evaluation.EvaluationAPI.java

/**
 * Create a new CSV file and store the generated PID in a list
 *
 * @param amountOfCsvFiles/* www. j  a v  a 2 s . c o m*/
 * @param amountOfRecords
 * @param amountOfColumns
 * @param averageRecordLength
 * @param variance
 * @return
 */
public List<PersistentIdentifier> createCsvFiles(int amountOfCsvFiles, int amountOfRecords, int amountOfColumns,
        int averageRecordLength, double variance) {
    this.listOfCsvFilePersistentIdentifiers = new TreeList<PersistentIdentifier>();
    for (int i = 0; i < amountOfCsvFiles; i++) {
        PersistentIdentifier pid = this.createNewRandomCSVFile(amountOfRecords, amountOfColumns,
                averageRecordLength, variance);
        this.listOfCsvFilePersistentIdentifiers.add(pid);

    }

    return this.listOfCsvFilePersistentIdentifiers;

}

From source file:org.leo.list.CombinedList.java

/**
 * Initialize custom structures/*from  w  ww.  j a v  a 2s .c  o  m*/
 */
private void init() {
    hashSet = new HashSet<E>();
    arrayList = new ArrayList<E>();
    treeList = new TreeList<E>();
}