The core of Java-ML: Instance and Dataset interfaces with their implementation can be found here.