Beispiel #1
0
        /// <summary>
        /// Searches the index for numeric values between {@code from} and {@code to}.
        /// </summary>
        /// <param name="propertyKeyId"> the property ID to match. </param>
        /// <param name="from"> lower bound of the range or null if unbounded </param>
        /// <param name="fromInclusive"> the lower bound is inclusive if true. </param>
        /// <param name="to"> upper bound of the range or null if unbounded </param>
        /// <param name="toInclusive"> the upper bound is inclusive if true. </param>
        /// <returns> an <seealso cref="IndexQuery"/> instance to be used for querying an index. </returns>
//JAVA TO C# CONVERTER WARNING: Java wildcard generics have no direct equivalent in .NET:
//ORIGINAL LINE: public static RangePredicate<?> range(int propertyKeyId, Number from, boolean fromInclusive, Number to, boolean toInclusive)
        public static RangePredicate <object> Range(int propertyKeyId, Number from, bool fromInclusive, Number to, bool toInclusive)
        {
            return(new NumberRangePredicate(propertyKeyId, from == null ? null : Values.numberValue(from), fromInclusive, to == null ? null : Values.numberValue(to), toInclusive));
        }