File
Doc
Category
Size
Date
Package
Immutable2.java
API Doc
Example
3874
Mon Apr 06 18:10:22 BST 1998
None
Mutable
java.lang.Object
public class Mutable extends Object
Fields Summary
private int
data
Constructors Summary
public Mutable
(
int
initVal)
data = initVal;
Methods Summary
public
Mutable
add
(
int
x)
data += x; return this;
public
Immutable2
makeImmutable2
()
return new Immutable2(data);
public
Mutable
multiply
(
int
x)
data *= x; return this;
Java Code Source