Class Limit
java.lang.Object
me.wiefferink.interactivemessenger.processing.Limit
Class to store a limit
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
left
public int left -
depth
public int depth -
notified
public boolean notified -
message
-
started
public long started
-
-
Constructor Details
-
Limit
Set the initial limit- Parameters:
count
- The limit to usemessage
- The message this limit is started for
-
-
Method Details
-
decrease
Decrease the limit- Throws:
ReplacementLimitReachedException
- when the limit hits zero
-
increase
public void increase()Increase the limit -
reached
public boolean reached()Check if the limit is reached- Returns:
- true if the limit is reached, otherwise false
-
toString
-