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

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

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

ArrayAdapter.<init>介绍

暂无

代码示例

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

public static <E> ArrayAdapter<E> adapt(E... array)
{
  return new ArrayAdapter<>(array);
}

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

public static <E> ArrayAdapter<E> newArrayWith(E one, E two, E three, E four, E five, E six)
{
  return new ArrayAdapter<>((E[]) new Object[]{one, two, three, four, five, six});
}

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

public static <E> ArrayAdapter<E> newArrayWith(E one, E two, E three, E four, E five, E six, E seven)
{
  return new ArrayAdapter<>((E[]) new Object[]{one, two, three, four, five, six, seven});
}

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

public static <E> ArrayAdapter<E> newArrayWith(E one, E two, E three, E four)
{
  return new ArrayAdapter<>((E[]) new Object[]{one, two, three, four});
}

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

public static <E> ArrayAdapter<E> newArrayWith(E one, E two, E three, E four, E five, E six, E seven)
{
  return new ArrayAdapter<>((E[]) new Object[]{one, two, three, four, five, six, seven});
}

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

public static <E> ArrayAdapter<E> newArrayWith(E one, E two, E three)
{
  return new ArrayAdapter<>((E[]) new Object[]{one, two, three});
}

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

public static <E> ArrayAdapter<E> newArrayWith(E one)
{
  return new ArrayAdapter<>((E[]) new Object[]{one});
}

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

public static <E> ArrayAdapter<E> newArrayWith(E one, E two, E three, E four)
{
  return new ArrayAdapter<>((E[]) new Object[]{one, two, three, four});
}

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

public static <E> ArrayAdapter<E> newArrayWith(E one, E two, E three, E four, E five)
{
  return new ArrayAdapter<>((E[]) new Object[]{one, two, three, four, five});
}

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

public static <E> ArrayAdapter<E> newArrayWith(E one)
{
  return new ArrayAdapter<>((E[]) new Object[]{one});
}

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

public static <E> ArrayAdapter<E> newArrayWith(E one, E two, E three, E four, E five)
{
  return new ArrayAdapter<>((E[]) new Object[]{one, two, three, four, five});
}

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

public static <E> ArrayAdapter<E> newArrayWith(E one, E two, E three)
{
  return new ArrayAdapter<>((E[]) new Object[]{one, two, three});
}

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

public static <E> ArrayAdapter<E> newArrayWith(E one, E two, E three, E four, E five, E six)
{
  return new ArrayAdapter<>((E[]) new Object[]{one, two, three, four, five, six});
}

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

@Override
public ArrayAdapter<T> clone()
{
  return new ArrayAdapter<>(this.items.clone());
}

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

@Override
public ArrayAdapter<T> clone()
{
  return new ArrayAdapter<>(this.items.clone());
}

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

public static <E> ArrayAdapter<E> newArray(Iterable<? extends E> source)
{
  return new ArrayAdapter<>((E[]) Iterate.toArray(source));
}

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

public static <E> ArrayAdapter<E> newArrayWith(E... elements)
{
  return new ArrayAdapter<>(elements.clone());
}

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

public static <E> ArrayAdapter<E> newArrayWith(E... elements)
{
  return new ArrayAdapter<>(elements.clone());
}

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

public static <E> ArrayAdapter<E> newArrayWithItem(Iterable<? extends E> iterable, E itemToAdd)
{
  int oldSize = Iterate.sizeOf(iterable);
  E[] array = (E[]) new Object[oldSize + 1];
  Iterate.toArray(iterable, array);
  array[oldSize] = itemToAdd;
  return new ArrayAdapter<>(array);
}

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

public static <E> ArrayAdapter<E> newArrayWithItem(Iterable<? extends E> iterable, E itemToAdd)
{
  int oldSize = Iterate.sizeOf(iterable);
  E[] array = (E[]) new Object[oldSize + 1];
  Iterate.toArray(iterable, array);
  array[oldSize] = itemToAdd;
  return new ArrayAdapter<>(array);
}

相关文章