class FindDataTypesQuery extends AbstractFindQuery implements NamedQuery {

    @Override
    public void validateTerms(Set<ValueIndexTerm> queryTerms) throws IllegalArgumentException {
        checkNotNullAndNotEmpty(queryTerms);

        checkInvalidAndRequiredTerms(queryTerms, NAME,
                new String [] {
                        ResourceType.JAVA.toString()
                },
                (t) -> (t.getTerm().equals(ResourceType.JAVA.toString()))
        );
    }

}