public class ReaderSchedule extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_INTERVAL |
static String |
DEFAULT_UNIT |
Constructor and Description |
---|
ReaderSchedule() |
ReaderSchedule(Long interval,
String unit) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
long |
getInterval()
Returns the value of field 'interval'.
|
String |
getUnit()
Returns the value of field 'unit'.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
void |
setInterval(long interval)
Sets the value of field 'interval'.
|
void |
setUnit(String unit)
Sets the value of field 'unit'.
|
public static final long DEFAULT_INTERVAL
public static final String DEFAULT_UNIT
public boolean equals(Object obj)
public long getInterval()
public String getUnit()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public void setInterval(long interval)
interval
- the value of field 'interval'.public void setUnit(String unit)
unit
- the value of field 'unit'.Copyright © 2017. All rights reserved.