Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.transistore.service;
 
Standard set of com.fasterxml.clustermate.service.LastAccessUpdateMethod choices that "Basic" TransiStore implementation supports -- simply just "none" or "simple"; latter meaning that there is one-to-one mapping between stored entries and matching last-access timestamps.
public enum TSLastAccess implements LastAccessUpdateMethod
    NONE(0), SIMPLE(1);
    
    private final int _index;
    private TSLastAccess(int index) {
         = index;
    }
    @Override public int asInt() { return ; }
    @Override public byte asByte() { return (byte; }
    @Override public boolean meansNoUpdate() { return (this == ); }
    public static TSLastAccess valueOf(int v)
    {
        if (v == .) {
            return ;
        }
        if (v == .) {
            return ;
        }
        return null;
    }
New to GrepCode? Check out our FAQ X