public static enum LogsView.DateViewType extends java.lang.Enum<LogsView.DateViewType>
| Enum Constant and Description |
|---|
DAY
Por Dia
|
MONTH
Por Mês
|
YEAR
Por ano
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDateByView(java.lang.String date)
Obtém a visão da data, conforme o tipo.
|
static LogsView.DateViewType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LogsView.DateViewType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogsView.DateViewType YEAR
public static final LogsView.DateViewType MONTH
public static final LogsView.DateViewType DAY
public static LogsView.DateViewType[] values()
for (LogsView.DateViewType c : LogsView.DateViewType.values()) System.out.println(c);
public static LogsView.DateViewType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getDateByView(java.lang.String date)
date - string com data no formato "yyyy/MM/dd"Copyright © 2015. All Rights Reserved.