Example usage for com.google.common.collect Sets complementOf

List of usage examples for com.google.common.collect Sets complementOf

Introduction

In this page you can find the example usage for com.google.common.collect Sets complementOf.

Prototype

public static <E extends Enum<E>> EnumSet<E> complementOf(Collection<E> collection) 

Source Link

Document

Creates an EnumSet consisting of all enum values that are not in the specified collection.

Usage

From source file:com.github.fge.jackson.SampleNodeProvider.java

public static Iterator<Object[]> getSamplesExcept(final NodeType first, final NodeType... other) {
    return getSamples(Sets.complementOf(EnumSet.of(first, other)));
}