Class CollectionContract<T>

java.lang.Object
com.apple.foundationdb.relational.api.options.CollectionContract<T>
Type Parameters:
T - the type parameter of the collection
All Implemented Interfaces:
OptionContract, OptionContractWithConversion<Collection<T>>

public class CollectionContract<T> extends Object implements OptionContract, OptionContractWithConversion<Collection<T>>
Option contract that ensures that all elements of a collection match some contract. The contract is only valid if the elements of the given option are (1) some kind of collection type and (2) every element in the collection satisfies the "element contract" over which the contract is defined. For example, the child contract may be that each element is of a given type or within a particular range.