Guava RangeSet - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Guava RangeSet class.

This code example shows how to use the following methods:contains
		this.blacklist = blacklist;
	} 
	 
	public boolean isAccepted(int dimensionID)
	{ 
		return !blacklist.contains(dimensionID);
	} 
	 
	public boolean isRejected(int dimensionID)
	{ 
		return blacklist.contains(dimensionID);
	} 
	 
	private static RangeSet<Integer> parseRangeSet(String list)
	{ 
		int index;
		int start;
		int end;
		String startPart;
		String endPart;
3
CodeRank
This code example shows how to use the following methods:encloses
    return dayOfWeek;
  } 
 
  @VisibleForTesting 
  boolean hasWildcardMinute() { 
    return getMinute().encloses(MINUTE);
  } 
 
  @VisibleForTesting 
  boolean hasWildcardHour() { 
    return getHour().encloses(HOUR);
  } 
 
  /** 
   * True if this entry covers all possible days of the month. 
   */ 
  public boolean hasWildcardDayOfMonth() { 
    return getDayOfMonth().encloses(DAY_OF_MONTH);
  } 
 
2
CodeRank
See Code Examples for Guava RangeSet Methods: