Java tutorial
/** * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * * Copyright 2012-2015 the original author or authors. */ package org.assertj.assertions.generator.description.converter; import com.google.common.collect.Sets; import java.util.Collections; import java.util.Set; /** * Defines which annotations to use to annotate getters method or class to generate assertions for. * <p> * @see org.assertj.assertions.generator.GenerateAssertion */ public class AnnotationConfiguration { private final Set<Class<?>> includedAnnotations; public AnnotationConfiguration(Set<Class<?>> includedAnnotations) { this.includedAnnotations = includedAnnotations; } public AnnotationConfiguration(Class<?>... includedAnnotations) { this.includedAnnotations = Sets.newHashSet(includedAnnotations); } public Set<Class<?>> includedAnnotations() { return includedAnnotations; } }