/** * Overloaded variant of {@link #queryOptions(Object...)} - see that method for details. * <p> * Note: This method is unnecessary as of Java 7, and is provided only for backward compatibility with Java 6 and * earlier, to eliminate generic array creation warnings output by the compiler in those versions. */ @Deprecated @SuppressWarnings({"JavaDoc"}) static QueryOptions queryOptions(Object queryOption) { return queryOptions(Collections.singleton(queryOption)); }
/** * A convenience method to encapsulate several objects together as {@link com.googlecode.cqengine.query.option.QueryOptions}, * where the class of the object will become its key in the QueryOptions map. * * @param queryOptions The objects to encapsulate as QueryOptions * @return A {@link QueryOptions} object */ @Deprecated static QueryOptions queryOptions(Object... queryOptions) { return queryOptions(Arrays.asList(queryOptions)); }
/** * Overloaded variant of {@link #queryOptions(Object...)} - see that method for details. * <p> * Note: This method is unnecessary as of Java 7, and is provided only for backward compatibility with Java 6 and * earlier, to eliminate generic array creation warnings output by the compiler in those versions. */ @Deprecated @SuppressWarnings({"JavaDoc"}) static QueryOptions queryOptions(Object queryOption1, Object queryOption2) { @SuppressWarnings({"unchecked", "UnnecessaryLocalVariable"}) List<Object> queryOptions = Arrays.asList(queryOption1, queryOption2); return queryOptions(queryOptions); }
queryOptions(orderBy(descending(timestampAttribute)), applyThresholds(threshold(EngineThresholds.INDEX_ORDERING_SELECTIVITY, 0.5))))) { Iterator<EntityHandle<T>> iterator = resultSet.iterator();