Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.clustermate.api;
 
 import java.util.*;
 
Enumeration of types of list items available for listing entries.
public enum ListItemType
{
    
Entries are ids in their binary form encoded as Base64 in JSON (and raw bytes in Smile). Return type will be <link>StorableKey</link>
    ids(StorableKey.class),
    
    
Entries are external textual representations of ids; Strings that can be converted back to raw ids as necessary, but can also be printed out for diagnostics. Return type will be java.lang.String
    names(String.class),
    
    
Object entries that include id (in binary form) as well as small set of additional StoreMate-level metadata.
    minimalEntries(ListItem.class),
    
    
Object entries are com.fasterxml.clustermate.api.msg.ListItem subtypes that contain additional information that service provides.
    fullEntries(ListItem.class)
    ;
    private final Class<?> _valueType;
    
    private ListItemType(Class<?> valueType) {
         = valueType;
    }

    
Accessor for getting java.lang.Class of actual items returned with this logical type.
    public Class<?> getValueType() { return ; }
    
    private final static HashMap<String,ListItemType_entries = new HashMap<String,ListItemType>();
    static {
        for (ListItemType t : ListItemType.values()) {
            .put(t.name(), t);
        }
    }
    public static ListItemType find(String str)
    {
        return .get(str);
    }
New to GrepCode? Check out our FAQ X