public static enum CookieUtils.Lifespan extends Enum<CookieUtils.Lifespan>
Modifier and Type | Method and Description |
---|---|
int |
getSeconds() |
static CookieUtils.Lifespan |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CookieUtils.Lifespan[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CookieUtils.Lifespan MINUTE
public static final CookieUtils.Lifespan HOUR
public static final CookieUtils.Lifespan DAY
public static final CookieUtils.Lifespan WEEK
public static CookieUtils.Lifespan[] values()
for (CookieUtils.Lifespan c : CookieUtils.Lifespan.values()) System.out.println(c);
public static CookieUtils.Lifespan valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getSeconds()
Copyright © 2005–2018 The Royal Danish Library, the National Library of France and the Austrian National Library.. All rights reserved.