public class Interval extends Observable implements Serializable, Cloneable
| Modifier and Type | Class and Description |
|---|---|
static class |
Interval.IntervalIterator |
| Constructor and Description |
|---|
Interval() |
Interval(int first,
int last) |
Interval(int min,
int max,
int first,
int last) |
| Modifier and Type | Method and Description |
|---|---|
Interval |
clone() |
boolean |
contains(int integerToCheck)
Retourne vrai si l'entier est dans l'interval.
|
boolean |
equals(Object o)
Method equals
|
int |
getFirst()
Get the value of first.
|
int |
getLast()
Get the value of last.
|
int |
getMax()
Retourne le nombre maximal que peut prendre comme valeur cette interval.
|
int |
getMin()
Retourne le nombre minimal que peut prendre comme valeur cette interval.
|
int |
getNbElem() |
Iterator<Integer> |
iterator() |
void |
move(int decal)
Move.
|
void |
setFirst(int v)
Set the value of first.
|
void |
setLast(int v)
Set the value of last.
|
void |
setMax(int max) |
void |
setMin(int min) |
String |
toString() |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedpublic Interval(int min,
int max,
int first,
int last)
public Interval(int first,
int last)
public Interval()
public int getMin()
public void setMin(int min)
public int getMax()
public void setMax(int max)
public int getFirst()
public void setFirst(int v)
v - Value to assign to first.public int getLast()
public void setLast(int v)
v - Value to assign to last.public void move(int decal)
decal - decal to movepublic boolean contains(int integerToCheck)
integerToCheck - integer to checkpublic int getNbElem()
public boolean equals(Object o)
Copyright © 1999–2015 CodeLutin. All rights reserved.