java.lang.Deprecated.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(6.1k)|赞(0)|评价(0)|浏览(95)

本文整理了Java中java.lang.Deprecated.<init>()方法的一些代码示例,展示了Deprecated.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Deprecated.<init>()方法的具体详情如下:
包路径:java.lang.Deprecated
类名称:Deprecated
方法名:<init>

Deprecated.<init>介绍

暂无

代码示例

代码示例来源:origin: square/retrofit

/** @deprecated Use {@link retrofit2.HttpException}. */
@Deprecated
public final class HttpException extends retrofit2.HttpException {
 public HttpException(Response<?> response) {
  super(response);
 }
}

代码示例来源:origin: square/retrofit

/** @deprecated Use {@link retrofit2.HttpException}. */
@Deprecated
public final class HttpException extends retrofit2.HttpException {
 public HttpException(Response<?> response) {
  super(response);
 }
}

代码示例来源:origin: square/retrofit

/** @deprecated Use {@link retrofit2.HttpException}. */
@Deprecated
public final class HttpException extends retrofit2.HttpException {
 public HttpException(Response<?> response) {
  super(response);
 }
}

代码示例来源:origin: google/guava

/**
 * Determines whether a character is a BMP digit according to {@linkplain Character#isDigit(char)
 * Java's definition}. If you only care to match ASCII digits, you can use {@code inRange('0',
 * '9')}.
 *
 * @deprecated Many digits are supplementary characters; see the class documentation.
 * @since 19.0 (since 1.0 as constant {@code JAVA_DIGIT})
 */
@Deprecated
public static CharMatcher javaDigit() {
 return JavaDigit.INSTANCE;
}

代码示例来源:origin: google/guava

/**
 * Determines whether a BMP character is lower case according to {@linkplain
 * Character#isLowerCase(char) Java's definition}.
 *
 * @deprecated Some lowercase characters are supplementary characters; see the class
 *     documentation.
 * @since 19.0 (since 1.0 as constant {@code JAVA_LOWER_CASE})
 */
@Deprecated
public static CharMatcher javaLowerCase() {
 return JavaLowerCase.INSTANCE;
}

代码示例来源:origin: ReactiveX/RxJava

/**
   * Trap null-check attempts on primitives.
   * @param value the value to check
   * @param message the message to print
   * @return the value
   * @deprecated this method should not be used as there is no need
   * to check primitives for nullness.
   */
  @Deprecated
  public static long requireNonNull(long value, String message) {
    throw new InternalError("Null check on a primitive: " + message);
  }
}

代码示例来源:origin: google/guava

/**
 * Guaranteed to throw an exception and leave the collection unmodified.
 *
 * @throws UnsupportedOperationException always
 * @deprecated Unsupported operation.
 */
@Deprecated
@Override
public final void clear() {
 throw new UnsupportedOperationException();
}

代码示例来源:origin: google/guava

/**
 * Guaranteed to throw an exception and leave the {@code RangeMap} unmodified.
 *
 * @throws UnsupportedOperationException always
 * @deprecated Unsupported operation.
 */
@Deprecated
@Override
public void put(Range<K> range, V value) {
 throw new UnsupportedOperationException();
}

代码示例来源:origin: google/guava

/**
 * Guaranteed to throw an exception and leave the {@code RangeMap} unmodified.
 *
 * @throws UnsupportedOperationException always
 * @deprecated Unsupported operation.
 */
@Deprecated
@Override
public void putCoalescing(Range<K> range, V value) {
 throw new UnsupportedOperationException();
}

代码示例来源:origin: google/guava

/**
 * Guaranteed to throw an exception and leave the map unmodified.
 *
 * @throws UnsupportedOperationException always
 * @deprecated Unsupported operation.
 */
@Deprecated
@Override
public final V computeIfPresent(
  K key, BiFunction<? super K, ? super V, ? extends V> remappingFunction) {
 throw new UnsupportedOperationException();
}

代码示例来源:origin: google/guava

/**
 * Guaranteed to throw an exception and leave the map unmodified.
 *
 * @throws UnsupportedOperationException always
 * @deprecated Unsupported operation.
 */
@Deprecated
@Override
public final void putAll(Map<? extends K, ? extends V> map) {
 throw new UnsupportedOperationException();
}

代码示例来源:origin: google/guava

/**
 * Guaranteed to throw an exception and leave the list unmodified.
 *
 * @throws UnsupportedOperationException always
 * @deprecated Unsupported operation.
 */
@Deprecated
@Override
public final void replaceAll(UnaryOperator<E> operator) {
 throw new UnsupportedOperationException();
}

代码示例来源:origin: google/guava

/**
 * Guaranteed to throw an exception and leave the list unmodified.
 *
 * @throws UnsupportedOperationException always
 * @deprecated Unsupported operation.
 */
@Deprecated
@Override
public final void sort(Comparator<? super E> c) {
 throw new UnsupportedOperationException();
}

代码示例来源:origin: ReactiveX/RxJava

/**
 * Returns an Object array containing snapshot all values of this processor.
 * <p>The method is thread-safe.
 * @return the array containing the snapshot of all values of this processor
 * @deprecated in 2.1.14; put the result of {@link #getValue()} into an array manually, will be removed in 3.x
 */
@Deprecated
public Object[] getValues() {
  T v = getValue();
  return v != null ? new Object[] { v } : new Object[0];
}

代码示例来源:origin: ReactiveX/RxJava

/**
 * Returns an Object array containing snapshot all values of the Subject.
 * <p>The method is thread-safe.
 * @return the array containing the snapshot of all values of the Subject
 * @deprecated in 2.1.14; put the result of {@link #getValue()} into an array manually, will be removed in 3.x
 */
@Deprecated
public Object[] getValues() {
  T v = getValue();
  return v != null ? new Object[] { v } : new Object[0];
}

代码示例来源:origin: google/guava

/**
 * Guaranteed to throw an exception and leave the multimap unmodified.
 *
 * @throws UnsupportedOperationException always
 * @deprecated Unsupported operation.
 */
@CanIgnoreReturnValue
@Deprecated
@Override
public ImmutableCollection<V> removeAll(Object key) {
 throw new UnsupportedOperationException();
}

代码示例来源:origin: google/guava

/**
 * Guaranteed to throw an exception and leave the multimap unmodified.
 *
 * @throws UnsupportedOperationException always
 * @deprecated Unsupported operation.
 */
@CanIgnoreReturnValue
@Deprecated
@Override
public boolean putAll(K key, Iterable<? extends V> values) {
 throw new UnsupportedOperationException();
}

代码示例来源:origin: google/guava

/**
 * Guaranteed to throw an exception and leave the map unmodified.
 *
 * @throws UnsupportedOperationException always
 * @deprecated Unsupported operation.
 */
@CanIgnoreReturnValue
@Deprecated
@Override
public final V putIfAbsent(K key, V value) {
 throw new UnsupportedOperationException();
}

代码示例来源:origin: google/guava

/**
 * Guaranteed to throw an exception and leave the collection unmodified.
 *
 * @throws UnsupportedOperationException always
 * @deprecated Unsupported operation.
 */
@CanIgnoreReturnValue
@Deprecated
@Override
public final int add(E element, int occurrences) {
 throw new UnsupportedOperationException();
}

代码示例来源:origin: google/guava

/** @deprecated Internal method, use {@link #entrySet()}. */
@Deprecated
@Override
public Set<Multiset.Entry<E>> createEntrySet() {
 return new EntrySet();
}

相关文章

Deprecated类方法