@Test public void testRemovingDuplicates2Test() throws Exception { BoardPosList[] positionsList = { new BoardPosList("1"), new BoardPosList("001|010|100"), new BoardPosList( "01|10") }; List<List<int[]>> ntuples = new NTuplesLocationsGeneralSupplier( positionsList, new RectSize(4, 5), new IdentitySymmetryExpander()) .get(); Assert.assertEquals(1 + 1 + 1, ntuples.stream().mapToInt(List::size).sum()); }
@Override public List<List<int[]>> get() { NTuplesLocationsBuilder builder = new NTuplesLocationsBuilder(expander, true); for (BoardPosList positions : positionsList) { builder.addLocations(positions.toLocations(boardSize)); } return builder.build(); }
NTuplesLocationsGeneralSupplier implements Supplier<List<List<int[]>>> { @Override public List<List<int[]>> get() { NTuplesLocationsBuilder builder = new NTuplesLocationsBuilder(expander, true); for (BoardPosList positions : positionsList) { builder.addLocations(positions.toLocations(boardSize)); } return builder.build(); } }
NTuplesLocationsGeneralSupplier implements Supplier<List<List<int[]>>> { @Override public List<List<int[]>> get() { NTuplesLocationsBuilder builder = new NTuplesLocationsBuilder(expander, true); for (BoardPosList positions : positionsList) { builder.addLocations(positions.toLocations(boardSize)); } return builder.build(); } NTuplesLocationsGeneralSupplier(String patterns, RectSize boardSize,
			SymmetryExpander symmetryExpander);   NTuplesLocationsGeneralSupplier(BoardPosList[] positionsList, RectSize boardSize,
			SymmetryExpander expander); private  NTuplesLocationsGeneralSupplier(String[] shapes, RectSize boardSize, SymmetryExpander symmetryExpander); }
NTuplesLocationsGeneralSupplier implements Supplier<List<List<int[]>>> { @Override public List<List<int[]>> get() { NTuplesLocationsBuilder builder = new NTuplesLocationsBuilder(expander, true); for (BoardPosList positions : positionsList) { builder.addLocations(positions.toLocations(boardSize)); } return builder.build(); } NTuplesLocationsGeneralSupplier(String patterns, RectSize boardSize,
			SymmetryExpander symmetryExpander);   NTuplesLocationsGeneralSupplier(BoardPosList[] positionsList, RectSize boardSize,
			SymmetryExpander expander); private  NTuplesLocationsGeneralSupplier(String[] shapes, RectSize boardSize, SymmetryExpander symmetryExpander); @Override List<List<int[]>> get(); @Override String toString(); }
NTuplesLocationsGeneralSupplier implements Supplier<List<List<int[]>>> { @Override public List<List<int[]>> get() { NTuplesLocationsBuilder builder = new NTuplesLocationsBuilder(expander, true); for (BoardPosList positions : positionsList) { builder.addLocations(positions.toLocations(boardSize)); } return builder.build(); } NTuplesLocationsGeneralSupplier(String patterns, RectSize boardSize,
			SymmetryExpander symmetryExpander);   NTuplesLocationsGeneralSupplier(BoardPosList[] positionsList, RectSize boardSize,
			SymmetryExpander expander); private  NTuplesLocationsGeneralSupplier(String[] shapes, RectSize boardSize, SymmetryExpander symmetryExpander); @Override List<List<int[]>> get(); @Override String toString();  }