- java.lang.Object
-
- be.yildizgames.module.graphic.gui.Zorder
-
- All Implemented Interfaces:
Comparable<Zorder>
public final class Zorder extends Object implements Comparable<Zorder>
Simple wrapper class for Z values.- Author:
- Grégory Van den Borre
-
-
Constructor Summary
Constructors Constructor Description Zorder(int z)Constructor, wrap the int value as Z order.
-
-
-
Method Detail
-
add
public Zorder add(int toAdd)
Create a new Zorder with a Z value added to the one of this object.- Parameters:
toAdd- Z value to add.- Returns:
- A new Zorder with Z value being the addition of this Z and the parameter value.
-
compareTo
public int compareTo(Zorder o)
- Specified by:
compareToin interfaceComparable<Zorder>
-
getValue
public int getValue()
-
-