diff options
| author | 2021-04-09 02:03:01 +0000 | |
|---|---|---|
| committer | 2021-04-09 02:03:01 +0000 | |
| commit | 02471bd90519af220d15210b1eeeaf98f8363478 (patch) | |
| tree | a74f5127ecbdf3924a67167c1aba732d59cbf1b7 | |
| parent | 4b24e01c29d462b156a95a3c8dc6d30fb77eebba (diff) | |
| parent | 682a98d82369788cb2e716a88b28f757f056c942 (diff) | |
Merge "Add documentation on EthernetNetworkSpecifier API" am: 682a98d823
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1669186
Change-Id: I3ce2800bf2719b22c16c227dc3ded9a7db8f62c7
| -rw-r--r-- | core/java/android/net/EthernetNetworkSpecifier.java | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/core/java/android/net/EthernetNetworkSpecifier.java b/core/java/android/net/EthernetNetworkSpecifier.java index e1685887e806..62c576144221 100644 --- a/core/java/android/net/EthernetNetworkSpecifier.java +++ b/core/java/android/net/EthernetNetworkSpecifier.java @@ -42,15 +42,22 @@ public final class EthernetNetworkSpecifier extends NetworkSpecifier implements @NonNull private final String mInterfaceName; + /** + * Create a new EthernetNetworkSpecifier. + * @param interfaceName Name of the ethernet interface the specifier refers to. + */ public EthernetNetworkSpecifier(@NonNull String interfaceName) { Preconditions.checkStringNotEmpty(interfaceName); mInterfaceName = interfaceName; } - // This may be null in the future to support specifiers based on data other than the interface - // name. + /** + * Get the name of the ethernet interface the specifier refers to. + */ @Nullable public String getInterfaceName() { + // This may be null in the future to support specifiers based on data other than the + // interface name. return mInterfaceName; } |