public static class Blinker.Step
extends java.lang.Object
Blinker.Step
represents a particular color held for a particular length of time.Modifier and Type | Field and Description |
---|---|
protected int |
color |
protected int |
msDuration |
Constructor and Description |
---|
Step() |
Step(int color,
long duration,
java.util.concurrent.TimeUnit unit) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Blinker.Step step) |
boolean |
equals(java.lang.Object them) |
int |
getColor() |
int |
getDurationMs() |
int |
hashCode() |
boolean |
isLit() |
static Blinker.Step |
nullStep() |
void |
setColor(int color) |
void |
setDuration(long duration,
java.util.concurrent.TimeUnit unit) |
void |
setLit(boolean isEnabled) |
public Step()
public Step(int color, long duration, java.util.concurrent.TimeUnit unit)
public static Blinker.Step nullStep()
public boolean equals(java.lang.Object them)
equals
in class java.lang.Object
public boolean equals(Blinker.Step step)
public int hashCode()
hashCode
in class java.lang.Object
public boolean isLit()
public void setLit(boolean isEnabled)
public int getColor()
public void setColor(int color)
public int getDurationMs()
public void setDuration(long duration, java.util.concurrent.TimeUnit unit)