Problem I am trying to implement feature hashing in Java. For this I am trying to use Hashing functions from […]
Tag: guava
Strongly connected component finding based on the guava graph library with Kosaraju
Problem I have been writing a small compiler generator for which I need to solve the strongly connected component problem. […]
Writing an API for checked subtraction
Problem I have to write an API for checked subtraction where the input minuend can be < 0 but subtrahend […]
Combining several collections into one
Problem Is there a way to rewrite this code to make it more laconic? I’m using Java 6. Object value […]
Comparing unordered list in java
Problem I want to compare two unordered list and currently I am doing it in the following way. Is there […]
Validate a string for positive number and normal string
Problem I have a method in which I am accepting a String clientid and that has below requirements: clientid can […]
Logging using function as decorator in Guava
Problem I needed to add a logger into my flow based on FluentIterable from the Guava library. I have a […]
Java: How to associate any number of employees with a location, but only one location per employee?
Problem Introduction & Test I would like to create an object which associates employees to X/Y coordinates. Multiple employees can […]
Checking if an element sastifying a condition in a list comes before another of a different condition
Problem This is for Java 6 and uses Guava. It’s a little ugly and I’m worried I missed some obvious […]
Text file manipulation with Java 8 and Guava
Problem I am trying to do some translation of text files. I have a translation .csv file and a file […]
- 1
- 2