public class QueryImpl<T extends ModelElementInstance> extends Object implements Query<T>
Constructor and Description |
---|
QueryImpl(Collection<T> collection) |
Modifier and Type | Method and Description |
---|---|
int |
count() |
<V extends ModelElementInstance> |
filterByType(Class<V> elementClass) |
<V extends ModelElementInstance> |
filterByType(ModelElementType elementType) |
List<T> |
list() |
T |
singleResult() |
public QueryImpl(Collection<T> collection)
public int count()
count
in interface Query<T extends ModelElementInstance>
public <V extends ModelElementInstance> Query<V> filterByType(ModelElementType elementType)
filterByType
in interface Query<T extends ModelElementInstance>
public <V extends ModelElementInstance> Query<V> filterByType(Class<V> elementClass)
filterByType
in interface Query<T extends ModelElementInstance>
public T singleResult()
singleResult
in interface Query<T extends ModelElementInstance>
Copyright © 2019. All rights reserved.