Java implementation of Pffy idioms