Sha256: b0d1801b3831be0ee82f401582e455a5471f760a6751f3ac6e3d737f06ff0cf9
Contents?: true
Size: 791 Bytes
Versions: 7
Compression:
Stored size: 791 Bytes
Contents
package com.treasuredata.api.model; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.databind.RuntimeJsonMappingException; public enum TDTableType { LOG("log"), ITEM("item"); private String name; private TDTableType(String name) { this.name = name; } @JsonCreator public static TDTableType fromName(String name) { if ("log".equals(name)) { return LOG; } else if ("item".equals(name)) { return ITEM; } throw new RuntimeJsonMappingException("Unexpected string tuple to deserialize TDTableType"); } @JsonValue @Override public String toString() { return name; } }
Version data entries
7 entries across 7 versions & 1 rubygems