org.eclipse.collections.impl.list.fixed.ArrayAdapter.newArrayWith()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(83)

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

ArrayAdapter.newArrayWith介绍

暂无

代码示例

代码示例来源:origin: eclipse/eclipse-collections

@Override
public ArrayAdapter<T> with(T value)
{
  return ArrayAdapter.newArrayWith(
      this.element1,
      this.element2,
      this.element3,
      this.element4,
      this.element5,
      this.element6,
      value);
}

代码示例来源:origin: eclipse/eclipse-collections

@Override
public ArrayAdapter<T> with(T value)
{
  return ArrayAdapter.newArrayWith(
      this.element1,
      this.element2,
      this.element3,
      this.element4,
      this.element5,
      this.element6,
      value);
}

代码示例来源:origin: eclipse/eclipse-collections

public static <E> ArrayAdapter<E> newArray()
{
  return ArrayAdapter.newArrayWith((E[]) EMPTY_ARRAY);
}

代码示例来源:origin: eclipse/eclipse-collections

public static <E> ArrayAdapter<E> newArray()
{
  return ArrayAdapter.newArrayWith((E[]) EMPTY_ARRAY);
}

代码示例来源:origin: eclipse/eclipse-collections

@Override
public <T> FixedSizeList<T> with(T... items)
{
  switch (items.length)
  {
    case 0:
      return this.of();
    case 1:
      return this.of(items[0]);
    case 2:
      return this.of(items[0], items[1]);
    case 3:
      return this.of(items[0], items[1], items[2]);
    case 4:
      return this.of(items[0], items[1], items[2], items[3]);
    case 5:
      return this.of(items[0], items[1], items[2], items[3], items[4]);
    case 6:
      return this.of(items[0], items[1], items[2], items[3], items[4], items[5]);
    default:
      return ArrayAdapter.newArrayWith(items);
  }
}

代码示例来源:origin: eclipse/eclipse-collections

@Override
public <T> FixedSizeList<T> with(T... items)
{
  switch (items.length)
  {
    case 0:
      return this.of();
    case 1:
      return this.of(items[0]);
    case 2:
      return this.of(items[0], items[1]);
    case 3:
      return this.of(items[0], items[1], items[2]);
    case 4:
      return this.of(items[0], items[1], items[2], items[3]);
    case 5:
      return this.of(items[0], items[1], items[2], items[3], items[4]);
    case 6:
      return this.of(items[0], items[1], items[2], items[3], items[4], items[5]);
    default:
      return ArrayAdapter.newArrayWith(items);
  }
}

代码示例来源:origin: org.eclipse.collections/eclipse-collections

@Override
public ArrayAdapter<T> with(T value)
{
  return ArrayAdapter.newArrayWith(
      this.element1,
      this.element2,
      this.element3,
      this.element4,
      this.element5,
      this.element6,
      value);
}

代码示例来源:origin: org.eclipse.collections/eclipse-collections

public static <E> ArrayAdapter<E> newArray()
{
  return ArrayAdapter.newArrayWith((E[]) EMPTY_ARRAY);
}

代码示例来源:origin: org.eclipse.collections/eclipse-collections

@Override
public <T> FixedSizeList<T> with(T... items)
{
  switch (items.length)
  {
    case 0:
      return this.of();
    case 1:
      return this.of(items[0]);
    case 2:
      return this.of(items[0], items[1]);
    case 3:
      return this.of(items[0], items[1], items[2]);
    case 4:
      return this.of(items[0], items[1], items[2], items[3]);
    case 5:
      return this.of(items[0], items[1], items[2], items[3], items[4]);
    case 6:
      return this.of(items[0], items[1], items[2], items[3], items[4], items[5]);
    default:
      return ArrayAdapter.newArrayWith(items);
  }
}

相关文章