public boolean containsETag(byte[] check){
  if (etag_list == null)   return false;
  for (  byte[] etag : etag_list) {
    if (Arrays.equals(etag,check))     return true;
  }
  return false;
}

public boolean containsETag ( byte [ ] check ) { if ( etag_list == null ) return false ; for ( byte [ ] etag : etag_list ) { if ( Arrays . equals ( etag , check ) ) return true ; } return false ; }
checks if the etag options contain the passed etag . this can be used by a server to respond to a validation request . the passed etag should be the one by the server denoting the current resource state .
