ListLink.java

jmud-0.11/src/util/list/ListLink.java · 487 B

From the archive jmud-0_11.tgz

Download the archive   « Back to the archive contents

package util.list;

import java.io.Serializable;

class ListLink implements Cloneable, Serializable {

  private Object   theInfo = null;
  private ListLink theNext = null;

  ListLink(Object info, ListLink next) {
    theInfo = info;
    theNext = next;
  }

  Object getInfo() {
    return theInfo;
  }

  ListLink getNext() {
    return theNext;
  }

  void setNext(ListLink next) {
    theNext = next;
  }

  public Object clone() {
    return new ListLink(theInfo, theNext);
  }

}

Site Stats

Snippets: 1791
Codebases: 571