diff options
| author | 2021-04-09 01:26:54 +0000 | |
|---|---|---|
| committer | 2021-04-09 01:26:54 +0000 | |
| commit | 682a98d82369788cb2e716a88b28f757f056c942 (patch) | |
| tree | a74f5127ecbdf3924a67167c1aba732d59cbf1b7 | |
| parent | 3dd880eca50cf379926fc26e9a5c0d50cc50f953 (diff) | |
| parent | f9dae9fec62d230f52b5de83a1df755f63f36e0d (diff) | |
Merge "Add documentation on EthernetNetworkSpecifier API"
| -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; } |