com.pnp.xfeature.documenttree
Class Combination

java.lang.Object
  extended by com.pnp.xfeature.documenttree.Combination

public class Combination
extends java.lang.Object

This class stores a possible combination. The Vector element stores the name of the elements, the Vector frequency stores an Integer, which indicates, how often the element can occur.

Author:
Valerio B?rker

Constructor Summary
Combination()
           
 
Method Summary
 void addElement(java.lang.Object o, int f)
           
 boolean containsString(int index, java.lang.String existingElement)
           
 java.lang.Object elementAt(int j)
           
 int frequencyAt(int j)
           
 boolean frequencySmallerThan(int index, int value)
           
 void removeAllElements()
           
 void removeElementAt(int i)
           
 void setElementAt(java.lang.Object o, int f, int i)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Combination

public Combination()
Method Detail

addElement

public void addElement(java.lang.Object o,
                       int f)

elementAt

public java.lang.Object elementAt(int j)

frequencyAt

public int frequencyAt(int j)

size

public int size()

setElementAt

public void setElementAt(java.lang.Object o,
                         int f,
                         int i)

removeElementAt

public void removeElementAt(int i)

removeAllElements

public void removeAllElements()

frequencySmallerThan

public boolean frequencySmallerThan(int index,
                                    int value)

containsString

public boolean containsString(int index,
                              java.lang.String existingElement)


Copyright © 2004 - 2008 ETH Zurich and P&P Software GmbH, All Rights Reserved.