Class UInt256s

java.lang.Object
org.apache.tuweni.units.bigints.UInt256s

public final class UInt256s extends Object
Static utility methods on UInt256 values.
  • Method Details

    • max

      public static <T extends UInt256Value<T>> T max(T v1, T v2)
      Returns the maximum of two UInt256 values.
      Type Parameters:
      T - The concrete type of the two values.
      Parameters:
      v1 - The first value.
      v2 - The second value.
      Returns:
      The maximum of v1 and v2.
    • min

      public static <T extends UInt256Value<T>> T min(T v1, T v2)
      Returns the minimum of two UInt256 values.
      Type Parameters:
      T - The concrete type of the two values.
      Parameters:
      v1 - The first value.
      v2 - The second value.
      Returns:
      The minimum of v1 and v2.