| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjist.swans.misc.SingletonInt
public class SingletonInt
Class to store a mutable primitive integer with in an Object (because Java has primitives in the first place).
| Field Summary | |
|---|---|
|  int | iencapsulated integer. | 
| Constructor Summary | |
|---|---|
| SingletonInt()Create a new singleton integer with value zero. | |
| SingletonInt(int i)Create a new singleton integer with given value. | |
| Method Summary | |
|---|---|
| static java.lang.Integer | getSmallInteger(int i)Return the Integer for a small integer, hopefully without a new allocation. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public int i
| Constructor Detail | 
|---|
public SingletonInt()
public SingletonInt(int i)
i - initial singleton integer value| Method Detail | 
|---|
public static java.lang.Integer getSmallInteger(int i)
i - some integer to convert to an Integer
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||