Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.fasterxml.clustermate.service.sync;
 
 import java.util.*;
 
Simple value class used for containing information for a "sync pull" operation.
public class SyncPullRequest extends ExtensibleType
    public List<StorableKeyentries;
    
    public SyncPullRequest() { }
    public void addEntry(StorableKey key) {
        if ( == null) {
             = new ArrayList<StorableKey>();
        }
        .add(key);
    }
    public int size() {
        return ( == null) ? 0 : .size();
    }
New to GrepCode? Check out our FAQ X