All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.util.WriteableCacheSetMapper Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.util;

import java.util.Collection;

import org.infinispan.CacheSet;
import org.infinispan.commons.util.InjectiveFunction;

/**
 * A writeable cache set mapper that also has constant time operations for things such as
 * {@link Collection#contains(Object)} if the underlying Set does. Also implements the Set interface.
 * 

* This set should be used for cases when a simple transformation of an element to another is all that is * needed by the underlying set. *

* This implementation is basically identical to {@link WriteableCacheCollectionMapper} except that this class * also implements {@link java.util.Set} and all of its optional operations. * @author wburns * @since 9.2 * @param the original collection type - referred to as old in some methods * @param the resulting collection type - referred to as new in some methods */ public class WriteableCacheSetMapper extends WriteableCacheCollectionMapper implements CacheSet { public WriteableCacheSetMapper(CacheSet realSet, InjectiveFunction toNewTypeFunction, InjectiveFunction fromNewTypeFunction, InjectiveFunction keyFilterFunction) { super(realSet, toNewTypeFunction, fromNewTypeFunction, keyFilterFunction); } public WriteableCacheSetMapper(CacheSet realSet, InjectiveFunction toNewTypeFunction, InjectiveFunction toNewTypeIteratorFunction, InjectiveFunction fromNewTypeFunction, InjectiveFunction keyFilterFunction) { super(realSet, toNewTypeFunction, toNewTypeIteratorFunction, fromNewTypeFunction, keyFilterFunction); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy