MCPcopy Create free account
hub / github.com/OneUIProject/oneui-core / min

Method min

core/src/main/java/androidx/core/graphics/Insets.java:126–130  ·  view source on GitHub ↗

Returns the component-wise minimum of two Insets. @param a The first Insets. @param b The second Insets. @return an Insets instance where the inset on each side is the smaller of the insets on that side from a and b.

(@NonNull Insets a, @NonNull Insets b)

Source from the content-addressed store, hash-verified

124 * the insets on that side from {@code a} and {@code b}.
125 */
126 @NonNull
127 public static Insets min(@NonNull Insets a, @NonNull Insets b) {
128 return Insets.of(Math.min(a.left, b.left), Math.min(a.top, b.top),
129 Math.min(a.right, b.right), Math.min(a.bottom, b.bottom));
130 }
131
132 /**
133 * Two Insets instances are equal if they belong to the same class and their fields are

Callers 15

drawChildMethod · 0.80
computeAxisDurationMethod · 0.80
setSeekBarIncrementMethod · 0.80
moveToStateMethod · 0.80
addAddedFragmentsMethod · 0.80
computeExpectedStateMethod · 0.80
setSizeMethod · 0.80
onAbsorbMethod · 0.80
drawMethod · 0.80
updateMethod · 0.80

Calls 1

ofMethod · 0.95

Tested by

no test coverage detected