本文整理了Java中org.infinispan.commons.util.Util.asSet()
方法的一些代码示例,展示了Util.asSet()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.asSet()
方法的具体详情如下:
包路径:org.infinispan.commons.util.Util
类名称:Util
方法名:asSet
暂无
代码示例来源:origin: org.infinispan/infinispan-commons
@Override
public Set<Class<? extends Equivalence>> getTypeClasses() {
return Util.asSet(ByteArrayEquivalence.class, AnyEquivalence.class,
AnyServerEquivalence.class);
}
代码示例来源:origin: org.infinispan/infinispan-commons
public static Set<Class<? extends IntSet>> getTypeClasses() {
return Util.asSet(SmallIntSet.class, RangeSet.class, org.infinispan.commons.util.RangeSet.class, EmptyIntSet.class,
SingletonIntSet.class, ConcurrentSmallIntSet.class);
}
}
代码示例来源:origin: org.infinispan/infinispan-tools
@Override
public Set<Class<? extends List>> getTypeClasses() {
return Util.asSet(ImmutableListCopy.class, ImmutableListCopy.ImmutableSubList.class);
}
}
代码示例来源:origin: org.infinispan/infinispan-tools
@Override
@SuppressWarnings("unchecked") // on purpose, it would not work otherwise
public Set getTypeClasses() {
return Util.asSet(List[].class);
}
}
代码示例来源:origin: org.infinispan/infinispan-commons
@Override
public Set<Class<? extends T>> getTypeClasses() {
return Util.asSet(clazz);
}
代码示例来源:origin: org.infinispan/infinispan-commons
@Override
@SuppressWarnings("unchecked")
public Set<Class<? extends Map>> getTypeClasses() {
return Util.asSet(ImmutableMapWrapper.class);
}
}
代码示例来源:origin: org.infinispan/infinispan-server-memcached
@Override
public Set<Class<? extends MemcachedMetadata>> getTypeClasses() {
return Util.asSet(MemcachedMetadata.class, MemcachedExpirableMetadata.class);
}
代码示例来源:origin: org.infinispan/infinispan-lucene-v3
@Override
public Set<Class<? extends ChunkCacheKey>> getTypeClasses() {
return Util.<Class<? extends ChunkCacheKey>>asSet(ChunkCacheKey.class);
}
代码示例来源:origin: org.infinispan/infinispan-commons
@Override
public Set<Class<? extends T>> getTypeClasses() {
Class<T> clazz = (Class<T>) instance.getClass();
return Util.asSet(clazz);
}
代码示例来源:origin: org.infinispan/infinispan-core
@Override
public Set<Class<? extends IdViaConfigObj>> getTypeClasses() {
return Util.<Class<? extends IdViaConfigObj>>asSet(IdViaConfigObj.class);
}
}
代码示例来源:origin: org.infinispan/infinispan-core
@Override
public Set<Class<? extends DuplicateIdClass>> getTypeClasses() {
return Util.<Class<? extends DuplicateIdClass>>asSet(DuplicateIdClass.class);
}
}
代码示例来源:origin: org.infinispan/infinispan-core
@Override
public Set<Class<? extends IdViaBothObj>> getTypeClasses() {
return Util.<Class<? extends IdViaBothObj>>asSet(IdViaBothObj.class);
}
}
代码示例来源:origin: org.infinispan/infinispan-core
@Override
public Set<Class<? extends TooHighIdClass>> getTypeClasses() {
return Util.<Class<? extends TooHighIdClass>>asSet(TooHighIdClass.class);
}
}
代码示例来源:origin: org.infinispan/infinispan-core
@Override
public Set<Class<? extends IdViaAnnotationObj>> getTypeClasses() {
return Util.<Class<? extends IdViaAnnotationObj>>asSet(IdViaAnnotationObj.class);
}
}
代码示例来源:origin: org.infinispan/infinispan-tools
@Override
public Set<Class<? extends List>> getTypeClasses() {
return Util.asSet(ArrayList.class, LinkedList.class,
getPrivateArrayListClass());
}
代码示例来源:origin: org.infinispan/infinispan-core
@Override
public Set<Class<? extends Object>> getTypeClasses() {
return Util.asSet(IdViaConfigObj.class, IdViaAnnotationObj.class, IdViaBothObj.class);
}
}
代码示例来源:origin: org.infinispan/infinispan-commons
@Override
@SuppressWarnings("unchecked")
public Set<Class<? extends MurmurHash3Old>> getTypeClasses() {
return Util.asSet(MurmurHash3Old.class);
}
代码示例来源:origin: org.infinispan/infinispan-tools
@Override
public Set<Class<? extends List<?>>> getTypeClasses() {
// This is loadable from any classloader
return Util.<Class<? extends List<?>>>asSet(Util.<List<?>>loadClass("java.util.Collections$SingletonList", null));
}
}
代码示例来源:origin: org.infinispan/infinispan-core
@Override
public Set<Class<? extends Object>> getTypeClasses() {
return Util.<Class<? extends Object>>asSet(
Util.loadClass("org.infinispan.marshall.AdvancedExternalizerTest$IdViaConfigObj", Thread.currentThread().getContextClassLoader()),
Util.loadClass("org.infinispan.marshall.AdvancedExternalizerTest$IdViaAnnotationObj", Thread.currentThread().getContextClassLoader()),
Util.loadClass("org.infinispan.marshall.AdvancedExternalizerTest$IdViaBothObj", Thread.currentThread().getContextClassLoader()));
}
}
代码示例来源:origin: org.infinispan/infinispan-core
@Override
protected void addListener() {
// Installing a listener with converter
Set<Class> filterAnnotations = Util.asSet(CacheEntryCreated.class, CacheEntryModified.class,
CacheEntryRemoved.class, CacheEntryExpired.class);
n.addFilteredListener(cl, null,
(key, oldValue, oldMetadata, newValue, newMetadata, eventType) -> "custom event for test ("
+ eventType.getType().name() + "," + key + "," + newValue + ")",
filterAnnotations);
}
内容来源于网络,如有侵权,请联系作者删除!