MCPcopy Create free account
hub / github.com/afkT/DevUtils / getLast

Method getLast

lib/DevApp/src/main/java/dev/utils/common/ArrayUtils.java:1064–1066  ·  view source on GitHub ↗

获取数组最后一条数据 @param array 数组 @param 泛型 @return 数组索引 length - 1 的值

(final T[] array)

Source from the content-addressed store, hash-verified

1062 * @return 数组索引 length - 1 的值
1063 */
1064 public static <T> T getLast(final T[] array) {
1065 return get(array, length(array) - 1);
1066 }
1067
1068 /**
1069 * 获取数组最后一条数据

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
lengthMethod · 0.95

Tested by

no test coverage detected