Files
secondo/Algebras/Rose/RoseJava/twodsack/util/collection/PairMultiSetList.java

44 lines
1.0 KiB
Java
Raw Permalink Normal View History

2026-01-23 17:03:45 +08:00
/*
* PairMultiSetList.java 2005-05-11
*
* Dirk Ansorge, FernUniversitaet Hagen
*
*/
package twodsack.util.collection;
import twodsack.set.*;
import java.util.*;
import java.io.*;
/**
* The PairMultiSetList class is an extension of a LinkedList that is used to store objects of type {@link twodsack.set.PairMultiSet}.
* Instances of this class are needed
* for storing connected components which are computed in the {@link twodsack.util.graph} class.
*/
public class PairMultiSetList extends LinkedList implements Serializable {
/*
* constructors
*/
/**
* The standard constructor.
*/
public PairMultiSetList(){}
/**
* Print the data of <i>this</i> to the standard output.
*/
public void print() {
if (this.isEmpty()) System.out.println("PairMultiSetList is empty.\n");
else {
for (int i = 0; i < this.size(); i++) {
System.out.println("element["+i+"]: ");
((PairMultiSet)this.get(i)).print();
}//for i
}//else
}//end method print
}//end class PairListList