am 1aa51646: Hide NsdServiceInfo additions for KKWT DO NOT MERGE
* commit '1aa516467c398d43751130d4964fc626489e63b7': Hide NsdServiceInfo additions for KKWT DO NOT MERGE
This commit is contained in:
@@ -141,6 +141,7 @@ public final class NsdServiceInfo implements Parcelable {
|
|||||||
* <p> Keys should be short, ideally no more than 9 characters, and unique per instance of
|
* <p> Keys should be short, ideally no more than 9 characters, and unique per instance of
|
||||||
* {@link NsdServiceInfo}. Calling {@link #setAttribute} twice with the same key will overwrite
|
* {@link NsdServiceInfo}. Calling {@link #setAttribute} twice with the same key will overwrite
|
||||||
* first value.
|
* first value.
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public void setAttribute(String key, String value) {
|
public void setAttribute(String key, String value) {
|
||||||
try {
|
try {
|
||||||
@@ -150,7 +151,10 @@ public final class NsdServiceInfo implements Parcelable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Remove an attribute by key */
|
/**
|
||||||
|
* Remove an attribute by key
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
public void removeAttribute(String key) {
|
public void removeAttribute(String key) {
|
||||||
mTxtRecord.remove(key);
|
mTxtRecord.remove(key);
|
||||||
}
|
}
|
||||||
@@ -160,6 +164,7 @@ public final class NsdServiceInfo implements Parcelable {
|
|||||||
*
|
*
|
||||||
* <p> The returned map is unmodifiable; changes must be made through {@link #setAttribute} and
|
* <p> The returned map is unmodifiable; changes must be made through {@link #setAttribute} and
|
||||||
* {@link #removeAttribute}.
|
* {@link #removeAttribute}.
|
||||||
|
* @hide
|
||||||
*/
|
*/
|
||||||
public Map<String, byte[]> getAttributes() {
|
public Map<String, byte[]> getAttributes() {
|
||||||
return Collections.unmodifiableMap(mTxtRecord);
|
return Collections.unmodifiableMap(mTxtRecord);
|
||||||
|
|||||||
Reference in New Issue
Block a user