code: public boolean isMetBy(Ordering otherOrdering) {
  		if (otherOrdering == null || this.indexes.size() > otherOrdering.indexes.size()) {
  			return false;
  		}
  		
  		for (int i = 0; i < this.indexes.size(); i++) {
  			if (this.indexes.get(i) != otherOrdering.indexes.get(i)) {
  				return false;
  			}
  			
  			// if this one request no order, everything is good
  			if (this.orders.get(i) != Order.NONE) {
  				if (this.orders.get(i) == Order.ANY) {
  					// if any order is requested, any not NONE order is good
  					if (otherOrdering.orders.get(i) == Order.NONE) {
  						return false;
  					}
  				} else if (otherOrdering.orders.get(i) != this.orders.get(i)) {
  					// the orders must be equal
  					return false;
  				}
  			}
  		}
  		return true;
  	}
docs: --------------------------------------------------------------------------------------------