001/*
002 * Copyright (C) 2010 The Guava Authors
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016
017package com.google.common.collect;
018
019import com.google.common.annotations.GwtCompatible;
020
021/**
022 * Factories for common {@link DiscreteDomain} instances.
023 *
024 * <p>See the Guava User Guide section on <a href=
025 * "http://code.google.com/p/guava-libraries/wiki/RangesExplained#Discrete_Domains">
026 * {@code DiscreteDomain}</a>.
027 *
028 * @author Gregory Kick
029 * @since 10.0
030 * @deprecated Merged into {@link DiscreteDomain}.  This class is scheduled for deletion in release
031 *             15.0.
032 */
033@GwtCompatible
034@Deprecated
035public final class DiscreteDomains {
036  private DiscreteDomains() {}
037
038  /**
039   * Returns the discrete domain for values of type {@code Integer}.
040   */
041  public static DiscreteDomain<Integer> integers() {
042    return DiscreteDomain.integers();
043  }
044
045  /**
046   * Returns the discrete domain for values of type {@code Long}.
047   */
048  public static DiscreteDomain<Long> longs() {
049    return DiscreteDomain.longs();
050  }
051}