public static < T > AOption < T > fromNullable ( T nullable ) { return nullable != null ? some ( nullable ) : AOption . < T > none ( ) ; }
This is a convenience method that creates an AOption based on Java conventions .