@Entity public class Interval extends Object implements IAppsensorEntity
Modifier and Type | Field and Description |
---|---|
static String |
DAYS |
static String |
HOURS |
static String |
MINUTES |
static String |
SECONDS |
Constructor and Description |
---|
Interval() |
Interval(int duration,
String unit) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getDuration() |
String |
getId() |
String |
getUnit() |
int |
hashCode() |
Interval |
setDuration(int duration) |
void |
setId(String id) |
Interval |
setUnit(String unit) |
long |
toMillis() |
String |
toString() |
public static final String SECONDS
public static final String MINUTES
public static final String HOURS
public static final String DAYS
public Interval()
public Interval(int duration, String unit)
public int getDuration()
public Interval setDuration(int duration)
public String getUnit()
public String getId()
public void setId(String id)
public long toMillis()
public int hashCode()
public boolean equals(Object obj)
public String toString()
Copyright © 2016 The Open Web Application Security Project (OWASP). All rights reserved.