SEInteger.java
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008, AIST, the University of Tokyo and General Robotix Inc.
3  * All rights reserved. This program is made available under the terms of the
4  * Eclipse Public License v1.0 which accompanies this distribution, and is
5  * available at http://www.eclipse.org/legal/epl-v10.html
6  * Contributors:
7  * General Robotix Inc.
8  * National Institute of Advanced Industrial Science and Technology (AIST)
9  */
17 package com.generalrobotix.ui.view.graph;
18 
19 public class SEInteger implements StringExchangeable {
20  Integer value_;
21 
27  public SEInteger(int value) {
28  value_ = new Integer(value);
29  };
30 
31  public SEInteger(String value) {
32  fromString(value);
33  }
34 
40  public String toString() {
41  return value_.toString();
42  }
43 
50  public Object fromString(String str) {
51  value_ = Integer.decode(str);
52  return (Object)value_;
53  }
54 
60  public void setValue(Object value) {
61  value_ = (Integer)value;
62  }
63 
69  public void setValue(String str) {
70  value_ = Integer.decode(str);
71  }
72 
78  public Object getValue() {
79  return (Object)value_;
80  }
81 
87  public int intValue() {
88  return value_.intValue();
89  }
90 };
png_voidp int value
Definition: png.h:2113


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat Apr 13 2019 02:14:25