@Test public void initialState_getAdjustedCount() { assertThat(adsAt15repeating.getAdjustedCount(0)).isEqualTo(0); assertThat(adsAt15repeating.getAdjustedCount(1)).isEqualTo(1); assertThat(adsAt15repeating.getAdjustedCount(10)).isEqualTo(10); assertThat(adsAt15repeating.getAdjustedCount(1000)).isEqualTo(1000); assertThat(noAds.getAdjustedCount(0)).isEqualTo(0); assertThat(noAds.getAdjustedCount(1000)).isEqualTo(1000); }
int getAdjustedCount(final int originalCount) { if (originalCount == 0) { return 0; } return getAdjustedPosition(originalCount - 1) + 1; }
PlacementData { int getAdjustedCount(final int originalCount) { if (originalCount == 0) { return 0; } return getAdjustedPosition(originalCount - 1) + 1; } }
PlacementData { int getAdjustedCount(final int originalCount) { if (originalCount == 0) { return 0; } return getAdjustedPosition(originalCount - 1) + 1; } private  PlacementData(@NonNull final int[] desiredInsertionPositions); }
PlacementData { int getAdjustedCount(final int originalCount) { if (originalCount == 0) { return 0; } return getAdjustedPosition(originalCount - 1) + 1; } private  PlacementData(@NonNull final int[] desiredInsertionPositions);  }
PlacementData { int getAdjustedCount(final int originalCount) { if (originalCount == 0) { return 0; } return getAdjustedPosition(originalCount - 1) + 1; } private  PlacementData(@NonNull final int[] desiredInsertionPositions);  final static int NOT_FOUND; }