Code example for LinkedHashSet

Methods: add

0
        jedis.zadd(bfoo, 1d, ba);
        jedis.zadd(bfoo, 2d, bb);
 
        long bstatus = jedis.zrem(bfoo, ba);
 
        Set<byte[]> bexpected = new LinkedHashSet<byte[]>();
        bexpected.add(bb);
 
        assertEquals(1, bstatus);
        assertEquals(bexpected, jedis.zrange(bfoo, 0, 100));
 
        bstatus = jedis.zrem(bfoo, bbar);
 
        assertEquals(0, bstatus);
 
    } 
 
    @Test 
    public void zincrby() { 
        jedis.zadd("foo", 1d, "a"); 
        jedis.zadd("foo", 2d, "b");