Returns True if the envelope contains the other envelope (boundary
inclusive).
@param other The other envelope.
@return True if this contains the other.
540648
public boolean contains(Envelope2D other) {// Note: Will return False, if
												// either envelope is empty.
		return other.xmin >= xmin && other.xmax <= xmax && other.ymin >= ymin
				&& other.ymax <= ymax;
	}
794103
protected boolean equalElements(KTypeArrayList<?> other) {
    int max = size();
    if (other.size() != max) {
      return false;
    }

    for (int i = 0; i < max; i++) {
      if (!Intrinsics.equals(this, get(i), other.get(i))) {
        return false;
      }
    }

    return true;
  }
1034231
public boolean clashesWith(MapElementContainer other) {
        // if either of the elements is always drawn, the elements do not clash
        if (Display.ALWAYS == this.display || Display.ALWAYS == other.display) {
            return false;
        }
        return this.getBoundaryAbsolute().intersects(other.getBoundaryAbsolute());
    }
755633
def is_sub_plate(self, other):
        
        if all(v in set(other.values) for v in self.values):
            return True
        if all(any(all(spv in m for spv in v) for m in map(set, other.values)) for v in self.values):
            return True
        if other in self.ancestor_plates:  # added by MK, but still not sure whether all cases are covered
            return True
        return False
250602
public boolean matchesWithMask(IPAddressSection other, IPAddressSection mask) {
		checkMaskSectionCount(mask);
		checkSectionCount(other);
		int divCount = getSegmentCount();
		for(int i = 0; i < divCount; i++) {
			IPAddressSegment div = getSegment(i);
			IPAddressSegment maskSegment = mask.getSegment(i);
			IPAddressSegment otherSegment = other.getSegment(i);
			if(!div.matchesWithMask(
					otherSegment.getSegmentValue(), 
					otherSegment.getUpperSegmentValue(), 
					maskSegment.getSegmentValue())) {
				return false;
			}
		}
		return true;
	}
1199040
public boolean containsAll(final LongHashSet other) {
        final LongIterator iterator = other.iterator();
        while (iterator.hasNext()) {
            if (!contains(iterator.nextValue())) {
                return false;
            }
        }
        return true;
    }
848452
public boolean contains(IPAddressString other) {
		if(isValid()) {
			if(other == this) {
				return true;
			}
			if(other.addressProvider.isUninitialized()) { // other not yet validated - if other is validated no need for this quick contains
				//do the quick check that uses only the String of the other
				Boolean directResult = addressProvider.contains(other.fullAddr);
				if(directResult != null) {
					return directResult.booleanValue();
				}
			}
			if(other.isValid()) {
				// note the quick result also handles the case of "all addresses"
				Boolean directResult = addressProvider.contains(other.addressProvider);
				if(directResult != null) {
					return directResult.booleanValue();
				}
				IPAddress addr = getAddress();
				if(addr != null) {
					IPAddress otherAddress = other.getAddress();
					if(otherAddress != null) {
						return addr.contains(otherAddress);
					}
				}
			}
		}
		return false;
	}
947646
public boolean isMetBy(LocalProperties other) {
		if (this.ordering != null) {
			// we demand an ordering
			return other.getOrdering() != null && this.ordering.isMetBy(other.getOrdering());
		} else if (this.groupedFields != null) {
			// check if the other fields are unique
			if (other.getGroupedFields() != null && other.getGroupedFields().isValidUnorderedPrefix(this.groupedFields)) {
				return true;
			} else  {
				return other.areFieldsUnique(this.groupedFields);
			}
		} else {
			return true;
		}
	}
198533
public final boolean overlaps(@NotNull final DayOpeningHours other) {
        Contract.requireArgNotNull("other", other);
        return hourRanges.overlaps(other.hourRanges);
    }
115485
public boolean containsAll(final IntHashSet other) {
        final IntIterator iterator = other.iterator();
        while (iterator.hasNext()) {
            if (!contains(iterator.nextValue())) {
                return false;
            }
        }
        return true;
    }
1012282
public boolean isSameAs( AstNode other ) {
        if (other == null) {
            return false;
        }
        if (!this.name.equals(other.name)) {
            return false;
        }
        if (!this.properties.equals(other.properties)) {
            return false;
        }
        if (this.getChildCount() != other.getChildCount()) {
            return false;
        }
        Iterator<AstNode> thisChildren = this.getChildren().iterator();
        Iterator<AstNode> thatChildren = other.getChildren().iterator();
        while (thisChildren.hasNext() && thatChildren.hasNext()) {
            if (!thisChildren.next().isSameAs(thatChildren.next())) {
                return false;
            }
        }
        return true;
    }
1157869
def contains(self, other):
        
        if not isinstance(other, Period):
            other = period(other)
        return self.start <= other.start and self.stop >= other.stop
988682
public boolean isConsistentWith(final BaseBankCardTrackData other)
  {
    if (this == other)
    {
      return true;
    }
    if (other == null)
    {
      return false;
    }
    boolean equals = true;

    if (hasAccountNumber() && other.hasAccountNumber())
    {
      if (!getAccountNumber().equals(other.getAccountNumber()))
      {
        equals = false;
      }
    }

    if (hasExpirationDate() && other.hasExpirationDate())
    {
      if (!getExpirationDate().equals(other.getExpirationDate()))
      {
        equals = false;
      }
    }

    if (hasServiceCode() && other.hasServiceCode())
    {
      if (!getServiceCode().equals(other.getServiceCode()))
      {
        equals = false;
      }
    }

    return equals;
  }
501390
public final boolean encloses(HString other) {
      if (other == null) {
         return false;
      }
      return (document() != null && other.document() != null) &&
                (document() == other.document())
                && super.encloses(other);
   }
426239
public boolean intersects(Interval1D<V> other) {
    if (other.hi.compareTo(this.lo) < 0) {
      return false;
    }
    if (this.hi.compareTo(other.lo) < 0) {
      return false;
    }

    return true;
  }
461300
def entails(self, other):
        
        other = BoolCell.coerce(other)
        return other.is_entailed_by(self)
149919
public boolean conflictsWith(OptionalBoolean other) {
		return state == State.CONFLICTING
			|| other.state == State.CONFLICTING
			|| (state == State.TRUE && other.state == State.FALSE)
			|| (state == State.FALSE && other.state == State.TRUE);
	}