All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lt.lang.implicit.RichObject Maven / Gradle / Ivy

Go to download

The latte-lang compiler project, which contains compiler and runtime required library.

The newest version!
package lt.lang.implicit;

/**
 * rich Object
 */
public class RichObject {
        private Object o;

        public RichObject(Object o) {
                this.o = o;
        }

        public String add(String s) {
                return o + s;
        }

        public boolean eq(Object that) {
                return o.equals(that);
        }

        public boolean ne(Object that) {
                return !this.eq(that);
        }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy