blob: 58b97d280f0455e1b817a24009a21b8f0d9f8cb0 [file] [log] [blame]
/*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.queryable.queries;
import com.android.queryable.Queryable;
import java.io.Serializable;
/** Query for a {@link Long}. */
public interface LongQuery<E extends Queryable> extends Serializable {
/** Require the {@link Long} is equal to {@code i}. */
E isEqualTo(long i);
/** Require the {@link Long} is greater than {@code i}. */
E isGreaterThan(long i);
/** Require the {@link Long} is greater than or equal to {@code i}. */
E isGreaterThanOrEqualTo(long i);
/** Require the {@link Long} is less than {@code i}. */
E isLessThan(long i);
/** Require the {@link Long} is less than or equal to {@code i}. */
E isLessThanOrEqualTo(long i);
}