KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > MutableInteger


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package test;
10
11 /**
12  * @version $Revision: 1.4 $
13  * @see
14  */

15 public class MutableInteger
16 {
17    private int m_value;
18
19    public MutableInteger(int value)
20    {
21       m_value = value;
22    }
23
24    public int get()
25    {
26       return m_value;
27    }
28
29    public void set(int value)
30    {
31       m_value = value;
32    }
33 }
34
Popular Tags