Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2eb331a0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add documentation on EthernetNetworkSpecifier API" am: 682a98d8 am:...

Merge "Add documentation on EthernetNetworkSpecifier API" am: 682a98d8 am: 02471bd9 am: 7fa8f1fa

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1669186

Change-Id: I350d4b3d3c3b146f48480475a21b5dbe718ffc36
parents 25f9e89c 7fa8f1fa
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -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;
    }