Skip to content

Tag Archives: Guava-Functions

Bytes.indexOf(byte[] array, byte target) method of Guava’s Bytes Class accepts two parameters array and target. If the target exists within the array, the method returns… Read More
Floats.indexOf(float[] array, float[] target) method of Guava’s Floats Class accepts two parameters array and target. If the target exists within the array, the method returns… Read More
The Booleans.asList() method of Guava’s Booleans Class accepts a boolean array as a parameter and returns a list which has the fixed size. The returned… Read More
The Floats.asList() method of Guava’s Floats Class accepts a float array as a parameter and returns a list which has the fixed size. The returned… Read More
Doubles.indexOf(double[] array, double[] target) method of Guava’s Doubles Class accepts two parameters array and target. If the target exists within the array, the method returns… Read More
The Lists.partition() method in Guava Library is used to divide the original list into sublists of the same size. The method accepts two parameters. For… Read More
The Bytes.asList() method of Guava’s Bytes Class accepts a byte array as a parameter and returns a list which has the fixed size. The returned… Read More
Guava’s Lists.reverse() method accepts a list as a parameter and returns a reversed view of the list passed as the parameter. If the specified list… Read More
The Doubles.asList() method of Guava’s Doubles Class accepts a double array as a parameter and returns a list which has the fixed size. The returned… Read More
Ints.indexOf(int[] array, int[] target) method of Guava’s Ints Class accepts two parameters array and target. If the target exists within the array, the method returns… Read More
The Shorts.asList() method of Guava’s Shorts Class accepts a short array as a parameter and returns a list which has the fixed size. The returned… Read More
Shorts.indexOf(short[] array, short[] target) method of Guava’s Shorts Class accepts two parameters array and target. If the target exists within the array, the method returns… Read More
The divide(int p, int q, RoundingMode mode) method of Guava’s IntMath Class accepts three parameters and calculates the result of dividing first parameter by second… Read More
checkedPow(int b, int k) is a method of Guava’s IntMath Class which accepts two parameters b and k and is used to find the k-th… Read More
Longs.indexOf(long[] array, long[] target) method of Guava’s Longs Class accepts two parameters array and target. If the target exists within the array, the method returns… Read More