api: Document Attributes.Key uses reference equality

The text here should be expanded once `keys()` is removed. But for now
this at least can make it clearer that the current behavior is on
purpose. The text here is the same as that in CallOptions.Key.

See https://github.com/grpc/grpc-java/issues/1764#issuecomment-1144935608
This commit is contained in:
Eric Anderson 2022-06-06 08:08:30 -07:00
parent 9a09021897
commit a2c0ae3295
1 changed files with 2 additions and 1 deletions

View File

@ -110,7 +110,8 @@ public final class Attributes {
}
/**
* Key for an key-value pair.
* Key for an key-value pair. Uses reference equality.
*
* @param <T> type of the value in the key-value pair
*/
@Immutable