- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for sortIPs (0.18 sec)
-
cmd/net.go
} return ipList, err } // sortIPs - sort ips based on higher octets. // The logic to sort by last octet is implemented to // prefer CIDRs with higher octets, this in-turn skips the // localhost/loopback address to be not preferred as the // first ip on the list. Subsequently this list helps us print // a user friendly message with appropriate values. func sortIPs(ipList []string) []string { if len(ipList) == 1 {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Tue Mar 26 15:00:38 GMT 2024 - 9.3K bytes - Viewed (0) -
cmd/net_test.go
{ ipList: []string{"127.0.0.1", "10.0.0.1", "192.168.0.1"}, sortedIPList: []string{"10.0.0.1", "192.168.0.1", "127.0.0.1"}, }, } for i, testCase := range testCases { gotIPList := sortIPs(testCase.ipList) if !reflect.DeepEqual(testCase.sortedIPList, gotIPList) { t.Errorf("Test %d: Expected %s, got %s", i+1, testCase.sortedIPList, gotIPList) } } } func TestMustGetLocalIP4(t *testing.T) {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Fri Apr 19 08:43:09 GMT 2024 - 9.3K bytes - Viewed (0) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/AbstractAcceptedApiChangesMaintenanceTask.kt
val jsonString = apiChangesFile.get().asFile.readText() val json = Gson().fromJson(jsonString, AcceptedApiChanges::class.java) return json.acceptedApiChanges!! } /** * Sorts the given list of [AcceptedApiChange]s by type and member. * <p> * This sort ought to remain consistent with the sort used by the [EnrichedReportRenderer]. */ @Suppress("KDocUnresolvedReference")
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Tue Feb 07 20:38:43 GMT 2023 - 2.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/TestIntegerSortedSetGenerator.java
@GwtCompatible @ElementTypesAreNonnullByDefault public abstract class TestIntegerSortedSetGenerator extends TestIntegerSetGenerator { @Override protected abstract SortedSet<Integer> create(Integer[] elements); /** Sorts the elements by their natural ordering. */ @Override public List<Integer> order(List<Integer> insertionOrder) { Collections.sort(insertionOrder); return insertionOrder; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 1.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/TestStringSortedSetGenerator.java
@Override public SortedSet<String> create(Object... elements) { return (SortedSet<String>) super.create(elements); } @Override protected abstract SortedSet<String> create(String[] elements); /** Sorts the elements by their natural ordering. */ @Override public List<String> order(List<String> insertionOrder) { Collections.sort(insertionOrder); return insertionOrder; } @Override
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 1.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java
} return create(array); } protected abstract Set<AnEnum> create(AnEnum[] elements); @Override public AnEnum[] createArray(int length) { return new AnEnum[length]; } /** Sorts the enums according to their natural ordering. */ @Override public List<AnEnum> order(List<AnEnum> insertionOrder) { Collections.sort(insertionOrder); return insertionOrder; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 1.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java
} return create(array); } protected abstract Set<AnEnum> create(AnEnum[] elements); @Override public AnEnum[] createArray(int length) { return new AnEnum[length]; } /** Sorts the enums according to their natural ordering. */ @Override public List<AnEnum> order(List<AnEnum> insertionOrder) { Collections.sort(insertionOrder); return insertionOrder; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 1.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/TestEnumMultisetGenerator.java
} return create(array); } protected abstract Multiset<AnEnum> create(AnEnum[] elements); @Override public AnEnum[] createArray(int length) { return new AnEnum[length]; } /** Sorts the enums according to their natural ordering. */ @Override public List<AnEnum> order(List<AnEnum> insertionOrder) { Collections.sort(insertionOrder); return insertionOrder; }
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 1.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/TestEnumMultisetGenerator.java
} return create(array); } protected abstract Multiset<AnEnum> create(AnEnum[] elements); @Override public AnEnum[] createArray(int length) { return new AnEnum[length]; } /** Sorts the enums according to their natural ordering. */ @Override public List<AnEnum> order(List<AnEnum> insertionOrder) { Collections.sort(insertionOrder); return insertionOrder; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 21 16:49:06 GMT 2024 - 1.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/LexicographicalOrdering.java
import java.io.Serializable; import java.util.Comparator; import java.util.Iterator; import javax.annotation.CheckForNull; import org.checkerframework.checker.nullness.qual.Nullable; /** An ordering which sorts iterables by comparing corresponding elements pairwise. */ @GwtCompatible(serializable = true) @ElementTypesAreNonnullByDefault final class LexicographicalOrdering<T extends @Nullable Object> extends Ordering<Iterable<T>>
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Sun Jun 20 14:22:42 GMT 2021 - 2.4K bytes - Viewed (0)