本文整理汇总了Java中org.eclipse.collections.impl.list.mutable.FastList.newListWith方法的典型用法代码示例。如果您正苦于以下问题:Java FastList.newListWith方法的具体用法?Java FastList.newListWith怎么用?Java FastList.newListWith使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.collections.impl.list.mutable.FastList
的用法示例。
在下文中一共展示了FastList.newListWith方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createTable
import org.eclipse.collections.impl.list.mutable.FastList; //导入方法依赖的package包/类
public static VerifiableTable createTable(int cols, Object... values)
{
List<List<Object>> headersAndRows = FastList.<List<Object>>newListWith(ArrayAdapter.adapt(values).subList(0, cols));
int start = cols;
while (start < values.length)
{
headersAndRows.add(ArrayAdapter.adapt(values).subList(start, start + cols));
start += cols;
}
// wrapping just to get coverage on default table adapter
return new DefaultVerifiableTableAdapter(new ListVerifiableTable(headersAndRows))
{
};
}
示例2: newMissingTable
import org.eclipse.collections.impl.list.mutable.FastList; //导入方法依赖的package包/类
private MutableList<MutableList<ResultCell>> newMissingTable()
{
return FastList.<MutableList<ResultCell>>newListWith(
FastList.newListWith(ResultCell.createMissingCell(CELL_COMPARATOR.getFormatter(), "Heading")),
FastList.newListWith(ResultCell.createMissingCell(CELL_COMPARATOR.getFormatter(), "Value")));
}
示例3: newSurplusTable
import org.eclipse.collections.impl.list.mutable.FastList; //导入方法依赖的package包/类
private MutableList<MutableList<ResultCell>> newSurplusTable()
{
return FastList.<MutableList<ResultCell>>newListWith(
FastList.newListWith(ResultCell.createSurplusCell(CELL_COMPARATOR.getFormatter(), "Heading")),
FastList.newListWith(ResultCell.createSurplusCell(CELL_COMPARATOR.getFormatter(), "Value")));
}
示例4: newPassTable
import org.eclipse.collections.impl.list.mutable.FastList; //导入方法依赖的package包/类
private static FastList<MutableList<ResultCell>> newPassTable()
{
return FastList.<MutableList<ResultCell>>newListWith(
FastList.newListWith(ResultCell.createMatchedCell(CELL_COMPARATOR, "Heading", "Heading")),
FastList.newListWith(ResultCell.createMatchedCell(CELL_COMPARATOR, "Value", "Value")));
}