Class ClassCollectionConstraint<T>
- java.lang.Object
-
- org.opentrafficsim.base.parameters.constraint.SubCollectionConstraint<Class<? extends T>>
-
- org.opentrafficsim.base.parameters.constraint.ClassCollectionConstraint<T>
-
- Type Parameters:
T
- class
- All Implemented Interfaces:
Constraint<Collection<Class<? extends T>>>
public final class ClassCollectionConstraint<T> extends SubCollectionConstraint<Class<? extends T>>
Constraint that checks whether a collection of classes is a sub collection of constraint collection.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 30 jun. 2017
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Field Summary
-
Fields inherited from class org.opentrafficsim.base.parameters.constraint.SubCollectionConstraint
objects
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> ClassCollectionConstraint<T>
newInstance(Class<? extends T>... objs)
Creates a new instance with given collection.String
toString()
-
Methods inherited from class org.opentrafficsim.base.parameters.constraint.SubCollectionConstraint
accept, failMessage, newInstance
-
-
-
-
Method Detail
-
newInstance
@SafeVarargs public static <T> ClassCollectionConstraint<T> newInstance(Class<? extends T>... objs)
Creates a new instance with given collection.- Type Parameters:
T
- type class- Parameters:
objs
- Class<? extends T>...; acceptable classes- Returns:
- new instance with given collection
-
toString
public String toString()
- Overrides:
toString
in classSubCollectionConstraint<Class<? extends T>>
-
-