public class IntegerVar extends Object implements Comparable<Object>
| Constructor and Description |
|---|
IntegerVar()
Creates a new integer with a val of 0.
|
IntegerVar(int i)
Creates a new integer with the specified value.
|
IntegerVar(Integer i)
Creates a new integer with the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IntegerVar i)
Compares this object to another IntegerVar.
|
int |
compareTo(Object o)
Compares this object with the specified object for order.
|
IntegerVar |
copy()
Creates a deep copy of this object.
|
static boolean |
equals(int testVal,
Object obj)
Checks if the object is an IntegerVar that equals the test value and
returns true if so.
|
boolean |
equals(Object obj)
Implements the equals operation.
|
int |
hashCode()
Overrides the Object.hashCode().
|
int |
intValue()
Returns the value of the IntegerVar.
|
boolean |
set(int i)
Sets the value to the specified int value.
|
boolean |
set(Integer i)
Sets the value to he specified Integer value.
|
boolean |
set(String i)
Sets the value to he specified Integer value.
|
String |
toString()
Returns the value of the IntegerVar.
|
public IntegerVar()
public IntegerVar(int i)
public IntegerVar(Integer i)
public int compareTo(IntegerVar i)
public int compareTo(Object o)
compareTo in interface Comparable<Object>public IntegerVar copy()
public boolean set(int i)
public boolean set(Integer i)
public boolean set(String i)
public int intValue()
public String toString()
public int hashCode()
public boolean equals(Object obj)
public static boolean equals(int testVal,
Object obj)
Copyright © 2023. All rights reserved.