Code example for HashFunction

Methods: hashInt

0
        this.every = every;
    } 
 
    @Override 
    public boolean apply(final Instance<AttributesMap> instance) {
        int hc = hashFunction.hashInt(instance.getAttributes().hashCode()).asInt();
        return Math.abs(hc) % every == 0;
    } 
}