Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.storemate.store.backend;
 
 public class BackendStatsConfig
 {
    
By default we only collect relatively inexpensive statistics
 
     protected final static boolean DEFAULT_ONLY_FAST = true;
    
    
By default we do not reset statistics after collection
    protected final static boolean DEFAULT_RESET = false;
    public final static BackendStatsConfig DEFAULT = new BackendStatsConfig();
    
    protected final boolean _fast;
    
    protected final boolean _resetAfterCollection;
    private BackendStatsConfig() {
        this();
    }
    protected BackendStatsConfig(boolean fastboolean reset)
    {
         = false;
         = reset;
    }
    public BackendStatsConfig onlyCollectFast(boolean state) {
        return new BackendStatsConfig(state);
    }
    public BackendStatsConfig resetStatsAfterCollection(boolean state) {
        return new BackendStatsConfig(state);
    }
    
    public boolean onlyCollectFast() {
        return ;
    }
    public boolean resetStatsAfterCollection() {
        return ;
    }
New to GrepCode? Check out our FAQ X