public static EnumSet<QueryOption> toOptions(ExtendedNegotiation extNeg) { EnumSet<QueryOption> opts = EnumSet.noneOf(QueryOption.class); if (extNeg != null) { toOption(extNeg, QueryOption.RELATIONAL, opts); toOption(extNeg, QueryOption.DATETIME, opts); toOption(extNeg, QueryOption.FUZZY, opts); toOption(extNeg, QueryOption.TIMEZONE, opts); } return opts ; }
public static EnumSet<QueryOption> toOptions(ExtendedNegotiation extNeg) { EnumSet<QueryOption> opts = EnumSet.noneOf(QueryOption.class); if (extNeg != null) { toOption(extNeg, QueryOption.RELATIONAL, opts); toOption(extNeg, QueryOption.DATETIME, opts); toOption(extNeg, QueryOption.FUZZY, opts); toOption(extNeg, QueryOption.TIMEZONE, opts); } return opts ; }