<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.lensovet.net/~sysadmin/w/index.php?action=history&amp;feed=atom&amp;title=Computer_Science%2F61b%2FHomework%2Fhw5%2Flist%2FListNode.java</id>
	<title>Computer Science/61b/Homework/hw5/list/ListNode.java - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.lensovet.net/~sysadmin/w/index.php?action=history&amp;feed=atom&amp;title=Computer_Science%2F61b%2FHomework%2Fhw5%2Flist%2FListNode.java"/>
	<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Computer_Science/61b/Homework/hw5/list/ListNode.java&amp;action=history"/>
	<updated>2026-05-03T15:30:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.16</generator>
	<entry>
		<id>http://www.lensovet.net/~sysadmin/w/index.php?title=Computer_Science/61b/Homework/hw5/list/ListNode.java&amp;diff=24341&amp;oldid=prev</id>
		<title>Lensovet: Lensovet moved page CS/61b/Homework/hw5/list/ListNode.java to Computer Science/61b/Homework/hw5/list/ListNode.java</title>
		<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Computer_Science/61b/Homework/hw5/list/ListNode.java&amp;diff=24341&amp;oldid=prev"/>
		<updated>2023-02-20T03:51:35Z</updated>

		<summary type="html">&lt;p&gt;Lensovet moved page &lt;a href=&quot;/~sysadmin/w/CS/61b/Homework/hw5/list/ListNode.java&quot; class=&quot;mw-redirect&quot; title=&quot;CS/61b/Homework/hw5/list/ListNode.java&quot;&gt;CS/61b/Homework/hw5/list/ListNode.java&lt;/a&gt; to &lt;a href=&quot;/~sysadmin/w/Computer_Science/61b/Homework/hw5/list/ListNode.java&quot; title=&quot;Computer Science/61b/Homework/hw5/list/ListNode.java&quot;&gt;Computer Science/61b/Homework/hw5/list/ListNode.java&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 03:51, 20 February 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Lensovet</name></author>
		
	</entry>
	<entry>
		<id>http://www.lensovet.net/~sysadmin/w/index.php?title=Computer_Science/61b/Homework/hw5/list/ListNode.java&amp;diff=4029&amp;oldid=prev</id>
		<title>Lensovet: moved CS 61b/Homework/hw5/list/ListNode.java to CS/61b/Homework/hw5/list/ListNode.java:&amp;#32;fix cs 61b hierarchy</title>
		<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Computer_Science/61b/Homework/hw5/list/ListNode.java&amp;diff=4029&amp;oldid=prev"/>
		<updated>2010-11-14T06:00:19Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/~sysadmin/w/CS_61b/Homework/hw5/list/ListNode.java&quot; class=&quot;mw-redirect&quot; title=&quot;CS 61b/Homework/hw5/list/ListNode.java&quot;&gt;CS 61b/Homework/hw5/list/ListNode.java&lt;/a&gt; to &lt;a href=&quot;/~sysadmin/w/CS/61b/Homework/hw5/list/ListNode.java&quot; class=&quot;mw-redirect&quot; title=&quot;CS/61b/Homework/hw5/list/ListNode.java&quot;&gt;CS/61b/Homework/hw5/list/ListNode.java&lt;/a&gt;: fix cs 61b hierarchy&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 06:00, 14 November 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Lensovet</name></author>
		
	</entry>
	<entry>
		<id>http://www.lensovet.net/~sysadmin/w/index.php?title=Computer_Science/61b/Homework/hw5/list/ListNode.java&amp;diff=3262&amp;oldid=prev</id>
		<title>Lensovet at 07:12, 22 September 2007</title>
		<link rel="alternate" type="text/html" href="http://www.lensovet.net/~sysadmin/w/index.php?title=Computer_Science/61b/Homework/hw5/list/ListNode.java&amp;diff=3262&amp;oldid=prev"/>
		<updated>2007-09-22T07:12:41Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{code}}&lt;br /&gt;
 /* ListNode.java */&lt;br /&gt;
 &lt;br /&gt;
 package list;&lt;br /&gt;
 &lt;br /&gt;
 /**&lt;br /&gt;
  *  A ListNode is a mutable node in a list.  No implementation is provided.&lt;br /&gt;
  *&lt;br /&gt;
  *  DO NOT CHANGE THIS FILE.&lt;br /&gt;
  **/&lt;br /&gt;
 &lt;br /&gt;
 public abstract class ListNode {&lt;br /&gt;
 &lt;br /&gt;
   /**&lt;br /&gt;
    *  item references the item stored in the current node.&lt;br /&gt;
    *  myList references the List that contains this node.&lt;br /&gt;
    *&lt;br /&gt;
    *  DO NOT CHANGE THE FOLLOWING FIELD DECLARATIONS.&lt;br /&gt;
    */&lt;br /&gt;
 &lt;br /&gt;
   protected Object item;&lt;br /&gt;
   protected List myList;&lt;br /&gt;
 &lt;br /&gt;
   /**&lt;br /&gt;
    *  isValidNode returns true if this node is valid; false otherwise.&lt;br /&gt;
    *  By default, an invalid node is one that doesn't belong to a list (myList&lt;br /&gt;
    *  is null), but subclasses can override this definition.&lt;br /&gt;
    *&lt;br /&gt;
    *  @return true if this node is valid; false otherwise.&lt;br /&gt;
    *&lt;br /&gt;
    *  Performance:  runs in O(1) time.&lt;br /&gt;
    */&lt;br /&gt;
   public boolean isValidNode() {&lt;br /&gt;
     return myList != null;&lt;br /&gt;
   }&lt;br /&gt;
 &lt;br /&gt;
   /**&lt;br /&gt;
    *  item() returns this node's item.  If this node is invalid,&lt;br /&gt;
    *  throws an exception.&lt;br /&gt;
    *&lt;br /&gt;
    *  @return the item stored in this node.&lt;br /&gt;
    *&lt;br /&gt;
    *  Performance:  runs in O(1) time.&lt;br /&gt;
    */&lt;br /&gt;
   public Object item() throws InvalidNodeException {&lt;br /&gt;
     if (!isValidNode()) {&lt;br /&gt;
       throw new InvalidNodeException();&lt;br /&gt;
     }&lt;br /&gt;
     return item;&lt;br /&gt;
   }&lt;br /&gt;
 &lt;br /&gt;
   /**&lt;br /&gt;
    *  setItem() sets this node's item to &amp;quot;item&amp;quot;.  If this node is invalid,&lt;br /&gt;
    *  throws an exception.&lt;br /&gt;
    *&lt;br /&gt;
    *  Performance:  runs in O(1) time.&lt;br /&gt;
    */&lt;br /&gt;
   public void setItem(Object item) throws InvalidNodeException {&lt;br /&gt;
     if (!isValidNode()) {&lt;br /&gt;
       throw new InvalidNodeException();&lt;br /&gt;
     }&lt;br /&gt;
     this.item = item;&lt;br /&gt;
   }&lt;br /&gt;
 &lt;br /&gt;
   /**&lt;br /&gt;
    *  next() returns the node following this node.  If this node is invalid,&lt;br /&gt;
    *  throws an exception.&lt;br /&gt;
    *&lt;br /&gt;
    *  @return the node following this node.&lt;br /&gt;
    *  @exception InvalidNodeException if this node is not valid.&lt;br /&gt;
    */&lt;br /&gt;
   public abstract ListNode next() throws InvalidNodeException;&lt;br /&gt;
 &lt;br /&gt;
   /**&lt;br /&gt;
    *  prev() returns the node preceding this node.  If this node is invalid,&lt;br /&gt;
    *  throws an exception.&lt;br /&gt;
    *&lt;br /&gt;
    *  @param node the node whose predecessor is sought.&lt;br /&gt;
    *  @return the node preceding this node.&lt;br /&gt;
    *  @exception InvalidNodeException if this node is not valid.&lt;br /&gt;
    */&lt;br /&gt;
   public abstract ListNode prev() throws InvalidNodeException;&lt;br /&gt;
 &lt;br /&gt;
   /**&lt;br /&gt;
    *  insertAfter() inserts an item immediately following this node.  If this&lt;br /&gt;
    *  node is invalid, throws an exception.&lt;br /&gt;
    *&lt;br /&gt;
    *  @param item the item to be inserted.&lt;br /&gt;
    *  @exception InvalidNodeException if this node is not valid.&lt;br /&gt;
    */&lt;br /&gt;
   public abstract void insertAfter(Object item) throws InvalidNodeException;&lt;br /&gt;
 &lt;br /&gt;
   /**&lt;br /&gt;
    *  insertBefore() inserts an item immediately preceding this node.  If this&lt;br /&gt;
    *  node is invalid, throws an exception.&lt;br /&gt;
    *&lt;br /&gt;
    *  @param item the item to be inserted.&lt;br /&gt;
    *  @exception InvalidNodeException if this node is not valid.&lt;br /&gt;
    */&lt;br /&gt;
   public abstract void insertBefore(Object item) throws InvalidNodeException;&lt;br /&gt;
 &lt;br /&gt;
   /**&lt;br /&gt;
    *  remove() removes this node from its List.  If this node is invalid,&lt;br /&gt;
    *  throws an exception.&lt;br /&gt;
    *&lt;br /&gt;
    *  @exception InvalidNodeException if this node is not valid.&lt;br /&gt;
    */&lt;br /&gt;
   public abstract void remove() throws InvalidNodeException; &lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Lensovet</name></author>
		
	</entry>
</feed>