org.restlet.util.Series.getDelegate()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(101)

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

Series.getDelegate介绍

暂无

代码示例

代码示例来源:origin: DeviceConnect/DeviceConnect-Android

/**
 * Returns an unmodifiable view of the specified series. Attempts to call a
 * modification method will throw an UnsupportedOperationException.
 * 
 * @param series
 *            The series for which an unmodifiable view should be returned.
 * @return The unmodifiable view of the specified series.
 */
@SuppressWarnings({ "unchecked", "rawtypes" })
public static Series<? extends NamedValue> unmodifiableSeries(
    final Series<? extends NamedValue> series) {
  return new Series(series.entryClass,
      java.util.Collections.unmodifiableList(series.getDelegate()));
}

代码示例来源:origin: org.restlet/org.restlet

/**
 * Returns a view of the portion of this list between the specified
 * fromIndex, inclusive, and toIndex, exclusive.
 * 
 * @param fromIndex
 *            The start position.
 * @param toIndex
 *            The end position (exclusive).
 * @return The sub-list.
 */
@Override
public Series<E> subList(int fromIndex, int toIndex) {
  return createSeries(getDelegate().subList(fromIndex, toIndex));
}

代码示例来源:origin: org.restlet.osgi/org.restlet

/**
 * Returns an unmodifiable view of the specified series. Attempts to call a
 * modification method will throw an UnsupportedOperationException.
 * 
 * @param series
 *            The series for which an unmodifiable view should be returned.
 * @return The unmodifiable view of the specified series.
 */
@SuppressWarnings({ "unchecked", "rawtypes" })
public static Series<? extends NamedValue> unmodifiableSeries(
    final Series<? extends NamedValue> series) {
  return new Series(series.entryClass,
      java.util.Collections.unmodifiableList(series.getDelegate()));
}

代码示例来源:origin: org.restlet.osgi/org.restlet

/**
 * Returns a view of the portion of this list between the specified
 * fromIndex, inclusive, and toIndex, exclusive.
 * 
 * @param fromIndex
 *            The start position.
 * @param toIndex
 *            The end position (exclusive).
 * @return The sub-list.
 */
@Override
public Series<T> subList(int fromIndex, int toIndex) {
  return new Series<T>(this.entryClass, getDelegate().subList(fromIndex,
      toIndex));
}

代码示例来源:origin: DeviceConnect/DeviceConnect-Android

/**
 * Returns a view of the portion of this list between the specified
 * fromIndex, inclusive, and toIndex, exclusive.
 * 
 * @param fromIndex
 *            The start position.
 * @param toIndex
 *            The end position (exclusive).
 * @return The sub-list.
 */
@Override
public Series<T> subList(int fromIndex, int toIndex) {
  return new Series<T>(this.entryClass, getDelegate().subList(fromIndex,
      toIndex));
}

相关文章