Josh
Native console access wrapper for Java

com.yifanlu.Josh
Class JoshBuffer

java.lang.Object
  extended by com.yifanlu.Josh.JoshBuffer
Direct Known Subclasses:
Josh, JoshInBuffer, JoshInput, JoshOutBuffer, JoshOutput

public abstract class JoshBuffer
extends java.lang.Object

Contains a handle to a memory location. Note that subclasses of JoshBuffer are immutable, therefore objects created cannot be modified, but can be replaced.

Since:
1.0
Version:
1.3, 05/29/10
Author:
Yifan Lu

Constructor Summary
JoshBuffer()
           
 
Method Summary
 boolean equals(java.lang.Object anObject)
          Compares two Objects, if both are JoshBuffer and have the same handle, they are equal.
 ConsoleHandle getHandle()
          Gets the memory location of this buffer.
 int hashCode()
          Returns a hash code.
protected  void setHandle(ConsoleHandle handle)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoshBuffer

public JoshBuffer()
Method Detail

getHandle

public ConsoleHandle getHandle()
Gets the memory location of this buffer.

Returns:
The memory location.

setHandle

protected void setHandle(ConsoleHandle handle)

equals

public boolean equals(java.lang.Object anObject)
Compares two Objects, if both are JoshBuffer and have the same handle, they are equal.

Overrides:
equals in class java.lang.Object
Parameters:
anObject - Another JoshBuffer object.
Returns:
true if both the memory handles are equal.

hashCode

public int hashCode()
Returns a hash code.

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this object.

Copyright © 2010 Yifan Lu