SEInteger.java
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2008, AIST, the University of Tokyo and General Robotix Inc.
00003  * All rights reserved. This program is made available under the terms of the
00004  * Eclipse Public License v1.0 which accompanies this distribution, and is
00005  * available at http://www.eclipse.org/legal/epl-v10.html
00006  * Contributors:
00007  * General Robotix Inc.
00008  * National Institute of Advanced Industrial Science and Technology (AIST) 
00009  */
00017 package com.generalrobotix.ui.view.graph;
00018 
00019 public class SEInteger implements StringExchangeable {
00020     Integer value_;
00021 
00027     public SEInteger(int value) {
00028         value_ = new Integer(value);
00029     };
00030 
00031     public SEInteger(String value) {
00032         fromString(value);
00033     }
00034 
00040     public String toString() {
00041         return value_.toString();
00042     }
00043 
00050     public Object fromString(String str) {
00051         value_ = Integer.decode(str);
00052         return (Object)value_;
00053     }
00054 
00060     public void setValue(Object value) {
00061         value_ = (Integer)value;
00062     }
00063 
00069     public void setValue(String str) {
00070         value_ = Integer.decode(str);
00071     }
00072 
00078     public Object getValue() {
00079         return (Object)value_;
00080     }
00081 
00087     public int intValue() {
00088         return value_.intValue();
00089     }
00090 };


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Apr 11 2019 03:30:19