Examples of Optional

A common alternative to using this class is to find or create a suitable null object for the type in question.

This class is not intended as a direct analogue of any existing "option" or "maybe" construct from other programming environments, though it may bear some similarities. @param < T> the type of instance that can be contained. {@code Optional} is naturallycovariant on this type, so it is safe to cast an {@code Optional} to {@code Optional} for any supertype {@code S} of {@code T}. @author Kurt Alfred Kluever @author Kevin Bourrillion @since Guava release 10

  • com.google.gwt.i18n.client.Messages.Optional
  • com.linkedin.restli.server.annotations.Optional
  • com.sun.star.beans.Optional
  • lupos.engine.operators.multiinput.optional.Optional
  • lupos.gui.operatorgraph.visualeditor.queryeditor.operators.Optional
  • net.sf.laja.parser.engine2.element.Optional
  • org.apache.isis.applib.annotation.Optional
  • org.eclipse.papyrus.sysml.activities.Optional
    A representation of the model object ' Optional'.

    The following features are supported:

    • {@link org.eclipse.papyrus.sysml.activities.Optional#getBase_Parameter Base Parameter}

    @see org.eclipse.papyrus.sysml.activities.ActivitiesPackage#getOptional() @model @generated
  • org.hamcrest.text.pattern.internal.ast.Optional
  • org.jrdf.query.expression.Optional
  • org.supercsv.cellprocessor.Optional
    This processor returns null if it meets the empty String in a column and does not call subsequent processors in its chain. It is a simple customization of the MagicToken. If you need to return different values than null, use that class instead. @author Kasper B. Graversen

  • Examples of org.supercsv.cellprocessor.Optional

                    current = previous == null ? new NotNull() : new NotNull(previous);
                } else if (name.equalsIgnoreCase("Optional")) {
                    if (params.length > 0) {
                        throw SupportLogger.LOGGER.invalidParamsForCellProcessor(name, params);
                    }
                    current = previous == null ? new Optional() : new Optional(previous);
                } else if (name.equalsIgnoreCase("ParseBool")) {
                    if (params.length == 0) {
                        //use the default true and false string values in org.supercsv.cellprocessor.ParseBool
                        current = previous == null ? new ParseBool() : new ParseBool((BoolCellProcessor) previous);
                    } else if (params.length == 2) {
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. All rights reserved.
    All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.