Skip to content

Tag Archives: Guava-Functions

The Longs.asList() method of Guava’s Longs Class accepts a long array as a parameter and returns a list which has the fixed size. The returned… Read More
The Chars.asList() method of Guava’s Chars Class accepts a char array as a parameter and returns a list which has the fixed size. The returned… Read More
The toArray() method of Shorts Class in the Guava library is used to convert the short values, passed as the parameter to this method, into… Read More
Chars.indexOf(char[] array, char target) method of Guava’s Chars Class accepts two parameters array and target. If the target exists within the array, the method returns… Read More
Chars.indexOf(char[] array, char[] target) method of Guava’s Chars Class accepts two parameters array and target. If the target exists within the array, the method returns… Read More
Booleans.indexOf(boolean[] array, boolean target) method of Guava’s Booleans Class accepts two parameters array and target. If the target exists within the array, the method returns… 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
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
checkedPow(long b, long k) is a method of Guava’s LongMath Class which accepts two parameters b and k and is used to find the k-th… 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
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
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
The divide(long p, long q, RoundingMode mode) method of Guava’s LongMath Class accepts three parameters and calculates the result of dividing first parameter by second… Read More
The concat() method of Longs Class in the Guava library is used to concatenate the values of many arrays into a single array. These long… Read More
The checkedSubtract(long a, long b) is a method of Guava’s LongMath Class which accepts two parameters a and b, and returns their difference. Syntax: public… Read More