public int incrementAndGet(String ip) {
        int index = 0;
        if (ip != null) {
            index = ip.hashCode() % slotCount;
        }
        if (index < 0) {
            index = -index;
        }
        return data[index].incrementAndGet();
    }
@Test
    void testIncrementAndGet() {
        
        SimpleIpFlowData simpleIpFlowData = new SimpleIpFlowData(5, 10000);
        assertEquals(1, simpleIpFlowData.incrementAndGet("127.0.0.1"));
        assertEquals(2, simpleIpFlowData.incrementAndGet("127.0.0.1"));
        assertEquals(3, simpleIpFlowData.incrementAndGet("127.0.0.1"));
        assertEquals(1, simpleIpFlowData.incrementAndGet("127.0.0.2"));
        assertEquals(2, simpleIpFlowData.incrementAndGet("127.0.0.2"));
        
    }