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

java.lang.Object
org.camunda.bpm.model.cmmn.impl.QueryImpl<T>
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 Details

    • QueryImpl

      public QueryImpl(Collection<T> collection)
  • Method Details

    • 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>