Table of Contents

Immutable Object

public final class ImmutableObject {

	private final String fieldOne;
	private final String fieldTwo;

	public ImmutableObject(String fieldOne, String fieldTwo) {
		this.fieldOne = fieldOne;
		this.fieldTwo = fieldTwo;
	}

	public final String getFieldOne() {	return fieldOne;	}
	public final String getFieldTwo() {	return fieldTwo;	}
}