Class QueryImpl<T extends org.camunda.bpm.model.xml.instance.ModelElementInstance>

  • All Implemented Interfaces:
    Query<T>

    public class QueryImpl<T extends org.camunda.bpm.model.xml.instance.ModelElementInstance>
    extends Object
    implements Query<T>
    Author:
    Sebastian Menski
    • Constructor Detail

      • QueryImpl

        public QueryImpl​(Collection<T> collection)
    • Method Detail

      • stream

        public Stream<T> stream()
        Specified by:
        stream in interface Query<T extends org.camunda.bpm.model.xml.instance.ModelElementInstance>
      • list

        public List<T> list()
        Specified by:
        list in interface Query<T extends org.camunda.bpm.model.xml.instance.ModelElementInstance>
      • count

        public int count()
        Specified by:
        count in interface Query<T extends org.camunda.bpm.model.xml.instance.ModelElementInstance>
      • filterByType

        public <V extends org.camunda.bpm.model.xml.instance.ModelElementInstance> Query<V> filterByType​(org.camunda.bpm.model.xml.type.ModelElementType elementType)
        Specified by:
        filterByType in interface Query<T extends org.camunda.bpm.model.xml.instance.ModelElementInstance>
      • filterByType

        public <V extends org.camunda.bpm.model.xml.instance.ModelElementInstance> Query<V> filterByType​(Class<V> elementClass)
        Specified by:
        filterByType in interface Query<T extends org.camunda.bpm.model.xml.instance.ModelElementInstance>
      • singleResult

        public T singleResult()
        Specified by:
        singleResult in interface Query<T extends org.camunda.bpm.model.xml.instance.ModelElementInstance>