java interface for entropy