Checks if ranges contain the uid

@param idRanges the id ranges
@param uid      the uid
@return true, if ranges contain given uid
761514
public static boolean containsUid(IdRange[] idRanges, long uid) {
        if (null != idRanges && idRanges.length > 0) {
            for (IdRange range : idRanges) {
                if (range.includes(uid)) {
                    return true;
                }
            }
        }
        return false;
    }
704440
func (r *NetIDRange) Contains(netid uint32) (bool, uint32) {
	if (netid >= r.Base) && ((netid - r.Base) < r.Size) {
		offset := netid - r.Base
		return true, offset
	}
	return false, 0
}
1226491
private void processRanges(List<DateRange> ranges, ProjectCalendarDateRanges container)
   {
      if (ranges != null)
      {
         for (DateRange range : ranges)
         {
            container.addRange(range);
         }
      }
   }
1004593
@Override
  public boolean intersects(IVersionRange yourRange)
  {
    for (IVersionRange range : ranges) {
      if (range.intersects(yourRange)) {
        return true;
      }
    }
    return false;
  }
329004
public boolean hasDataRecords() {
		long blkNum = (Long) getVal(OFFSET_TS_BLOCKID, BIGINT).asJavaVal();
		return blkNum != NO_SLOT_BLOCKID ? true : false;
	}
1082629
@Override
    public boolean containsWithinBounds(Object value) {
        final int result = compareTo(from, value);
        return result == 0 || result < 0 && compareTo(to, value) >= 0;
    }
608235
public boolean containsRange(Range<T> otherRange) {
    if (otherRange == null) { return false; }
    return contains(otherRange.min) && contains(otherRange.max);
  }
738103
public List<ValidationData> findByIds(List<Long> ids) {
        return this.datas.stream().filter(d -> ids.contains(d.getId())).collect(Collectors.toList());
    }
843274
private boolean contains(ArrayList defs, DefBase obj)
    {
        for (Iterator it = defs.iterator(); it.hasNext();)
        {
            if (obj.getName().equals(((DefBase)it.next()).getName()))
            {
                return true;
            }
        }
        return false;
    }
13311
public boolean hasBoundaryMatches()
    {
        for (Transition<DFAState<T>> t : transitions.values())
        {
            CharRange range = t.getCondition();
            if (range.getFrom() < 0)
            {
                return true;
            }
        }
        return false;
    }
1158582
public void setIpRanges(java.util.Collection<String> ipRanges) {
        if (ipRanges == null) {
            this.ipRanges = null;
            return;
        }

        this.ipRanges = new com.amazonaws.internal.SdkInternalList<String>(ipRanges);
    }
1318996
@Override
    public boolean hasStableIds() {
        Collection<? extends Binder<?, ?>> allBinders = getAllBinders();
        if (allBinders.size() == 1) {
            // Save an allocation by checking for List first.
            if (allBinders instanceof List) {
                //noinspection unchecked
                return ((List<Binder<?, ?>>) allBinders).get(0).hasStableIds();
            }
            return allBinders.iterator().next().hasStableIds();
        }
        // Can't possibly have stable IDs if we have multiple binders.
        return false;
    }
976379
public boolean isTouchedByRange(int globalStartIndex, int globalEndIndex) {
        return ((startIndex >= globalStartIndex) && (startIndex <= globalEndIndex))
                || ((endIndex >= globalStartIndex) && (endIndex <= globalEndIndex))
                || ((startIndex <= globalStartIndex) && (endIndex >= globalEndIndex));

    }
6580
public static <T extends Comparable<T>> RangeSet<T> unionRanges(final Iterable<Range<T>> ranges)
  {
    RangeSet<T> rangeSet = null;
    for (Range<T> range : ranges) {
      if (rangeSet == null) {
        rangeSet = TreeRangeSet.create();
      }
      rangeSet.add(range);
    }
    return rangeSet;
  }
953782
def get_idx_types(rng_def, ranges):
    
    idx_types = rng_def.get('kds_esIndexType', []).copy()
    if not idx_types:
        nested = False
        for rng in ranges:
            if range_is_obj(rng, __MODULE__.rdfclass):
                nested = True
        if nested:
            idx_types.append('es_Nested')
    return idx_types
336777
public static boolean[] updateRanges(boolean[] range, List<RuleInterval> ruleIntervals) {
    boolean[] res = Arrays.copyOf(range, range.length);
    for (RuleInterval i : ruleIntervals) {
      int start = i.getStart();
      int end = i.getEnd();
      for (int j = start; j < end; j++) {
        res[j] = true;
      }
    }
    return res;
  }
1263173
def _check_insersection(self, version, ranges):
        """"""

        for ver_range in ranges:
            if not self._check_ver_range(version, ver_range):
                return False

        return True