@@ -0,0 +1,1261 @@
+package com.gochinatv.cdn.api.guava;%0A%0Aimport java.time.LocalDateTime;%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0Aimport java.util.Map;%0Aimport java.util.concurrent.BlockingQueue;%0Aimport java.util.concurrent.TimeUnit;%0A%0Aimport com.google.common.base.Stopwatch;%0Aimport com.google.common.collect.Lists;%0Aimport com.google.common.collect.Maps;%0Aimport com.google.common.collect.Range;%0A%0Apublic class RangeUtils %7B%0A    %0A%09public static void main(String%5B%5D args) %7B%0A%09%09Map%3CByte, byte%5B%5D%3E data = Maps.newHashMap();%0A%09%09Byte b=12;%0A%09%09byte%5B%5D bt = data.getOrDefault(b, new byte%5B%5D%7B1,2,3%7D);%0A%09%09System.out.println(bt%5B0%5D);%0A%09%09%0A%09%09List%3CObject%3E list = Lists.newArrayList();%0A%09%09BlockingQueue%3CObject%3E queue = null;%0A%09%09Stopwatch stopwatch = Stopwatch.createStarted();%0A%09%09try %7B%0A%09%09%09Thread.sleep(1000L);%0A%09%09%7D catch (InterruptedException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09long time = stopwatch.stop().elapsed(TimeUnit.MILLISECONDS);%0A%09%09System.out.println(time);%0A%09%09LocalDateTime ldt;%0A%09%09%0A%09%09list.forEach(obj -%3E %7B%0A%09%09%09System.out.println(obj.toString()); %0A%09%09%7D);%0A%09%09%0A%09%09Range%3CInteger%3E closed = Range.closedOpen(1, 4);%0A%09%09System.out.println(%22=====%22+closed.lowerBoundType()+%22====%22+closed.upperBoundType());%0A%09%09System.out.println(%22=====%22+closed.lowerEndpoint()+%22====%22+closed.upperEndpoint());%0A%09%09//data.put%0A%09%7D%0A%7D%0A

add guava ranage support