public class

MathUtil

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.MathUtil

Class Overview

Set of common operations on Number that are not in Math.

Summary

Public Constructors
MathUtil()
Public Methods
static boolean betweenExclusive(long value, long min, long max)
Check that a value is between two bounds (exclusive)
static boolean betweenInclusive(long value, long min, long max)
Check that a value is between two bounds (inclusive)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MathUtil ()

Public Methods

public static boolean betweenExclusive (long value, long min, long max)

Check that a value is between two bounds (exclusive)

Parameters
value value
min min bound
max max bound
Returns
  • true if when value is in range ]min, max[

public static boolean betweenInclusive (long value, long min, long max)

Check that a value is between two bounds (inclusive)

Parameters
value value
min min bound
max max bound
Returns
  • true if when value is in range [min, max]