public static int encodeCacheFlags(Collection<GridClientCacheFlag> flagSet){
  int bits=0;
  if (flagSet.contains(GridClientCacheFlag.SKIP_STORE))   bits|=1;
  return bits;
}

public static int encodeCacheFlags ( Collection < GridClientCacheFlag > flagSet ) { int bits = 0 ; if ( flagSet . contains ( GridClientCacheFlag . SKIP_STORE ) ) bits |= 1 ; return bits ; }
encodes cache flags to bit map .
