nz.ac.waikato.mcennis.rat.graph.algorithm.reusablecores.datavector
Class ListSetDataVector

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.graph.algorithm.reusablecores.datavector.ListSetDataVector

public class ListSetDataVector
extends java.lang.Object

Create a pair of data vectors backed by a list and set combination. Note that some functions will be very slow as random access to lists are linear operations.


Nested Class Summary
 class ListSetDataVector.LeftVector
          data vector backed by a list
 class ListSetDataVector.RightVector
          Data vector backed by a Set
 
Constructor Summary
ListSetDataVector(java.util.List<? extends java.lang.Object> left, java.util.Set<? extends java.lang.Object> right, int size)
          Creates two new data vectors from a list and a set.
 
Method Summary
 DataVector left()
          Get the left side of this data vector pair
 DataVector right()
          Get the right side of this data vector pair
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListSetDataVector

public ListSetDataVector(java.util.List<? extends java.lang.Object> left,
                         java.util.Set<? extends java.lang.Object> right,
                         int size)
Creates two new data vectors from a list and a set. Assumes binary exists or not exists as the values for each entry.

Parameters:
left -
right -
Method Detail

left

public DataVector left()
Get the left side of this data vector pair

Returns:
left data vector

right

public DataVector right()
Get the right side of this data vector pair

Returns:
right data vector