Class TickingLocation
java.lang.Object
io.github.apfelcreme.Pipes.LoopDetection.TickingLocation
- All Implemented Interfaces:
Comparable<TickingLocation>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(TickingLocation other) compares this tickingLocation to another tickingLocationreturns the locationint
returns the time the location was found alreadyvoid
increases the counter
-
Constructor Details
-
TickingLocation
-
-
Method Details
-
getLocation
returns the location- Returns:
- the location
-
getTimesTicked
public int getTimesTicked()returns the time the location was found already- Returns:
- the time the location was found
-
increment
public void increment()increases the counter -
compareTo
compares this tickingLocation to another tickingLocation- Specified by:
compareTo
in interfaceComparable<TickingLocation>
- Parameters:
other
- the other ticking location- Returns:
- -1 if this one is smaller, 0 if they're equal, 1 if this one is bigger
-