cs195z.support
Class CElement<T extends Number,E extends Serializable>

java.lang.Object
  extended by cs195z.support.CElement<T,E>

public class CElement<T extends Number,E extends Serializable>
extends Object

The atomic unit you want to cluster.

Author:
apstewar

Constructor Summary
CElement(List<T> content)
           
CElement(List<T> content, E name)
           
 
Method Summary
 List<T> getContents()
          Gets vector of numbers.
 E getName()
          Gets the serializable object that "names" the element.
 void setName(E _name)
          Stores the serializable object that "names" the element.
 String toString()
          Pretty prints.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CElement

public CElement(List<T> content)

CElement

public CElement(List<T> content,
                E name)
Method Detail

getContents

public List<T> getContents()
Gets vector of numbers.

Returns:
a List of type Number

getName

public E getName()
Gets the serializable object that "names" the element.

Returns:
type E

setName

public void setName(E _name)
Stores the serializable object that "names" the element.

Parameters:
_name -

toString

public String toString()
Pretty prints.

Overrides:
toString in class Object