public static CompressionMap of(Compression... compressionInstances) {
    CompressionMap newSet = new CompressionMap();
    for (Compression instance : compressionInstances) {
      newSet.add(instance);
    }
    return newSet;
  }
Create a set of compression instances using the specified instances.
@param compressionInstances List of compression instances.
@return an instance of compression set.
ambry-commons/src/main/java/com/github/ambry/compression/CompressionMap.java