Code example for LinkedHashSet

Methods: add

0
 
        assertEquals(bexpected, brange);
 
        brange = jedis.zrangeByScore(bfoo, 0d, 2d, 0, 1);
 
        bexpected = new LinkedHashSet<byte[]>();
        bexpected.add(bc);
 
        assertEquals(bexpected, brange);
 
        brange = jedis.zrangeByScore(bfoo, 0d, 2d, 1, 1);
        Set<byte[]> brange2 = jedis.zrangeByScore(bfoo, SafeEncoder
                .encode("-inf"), SafeEncoder.encode("(2")); 
        assertEquals(bexpected, brange2);
 
        bexpected = new LinkedHashSet<byte[]>();
        bexpected.add(ba);
 
        assertEquals(bexpected, brange);
 
    }