KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > MutableBoolean


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 MutableBoolean
16 {
17    private boolean m_value;
18
19    public MutableBoolean(boolean value)
20    {
21       set(value);
22    }
23
24    public boolean get()
25    {
26       return m_value;
27    }
28
29    public void set(boolean value)
30    {
31       m_value = value;
32    }
33 }
Popular Tags