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

com.jongsoft.lang.control.package-info Maven / Gradle / Ivy

The newest version!
/**
 * The control package contains flow control interfaces. These can be used to direct the logical flow of your code easier.
 *
 * 

Current support control mechanisms

*
    *
  • {@linkplain com.jongsoft.lang.control.Optional}, for {@code null} safe access to elements
  • *
  • {@linkplain com.jongsoft.lang.control.Try}, for exception handling logic
  • *
  • {@linkplain com.jongsoft.lang.control.Equal}, for logical equality building
  • *
* *

* The Optional is a functional representation of a value, or {@code null}. In both cases the Optional itself * will be non null and allow functional access to its contents. It allows for handling when a value is present as * well as supporting control operations in case no value is present. *

*
 {@code    // Sample usage of the Optional
 *     Control.Option("one")
 *          .ifPresent(System.out::println)
 *          .orElse(() -> System.out.println("No value is present");
 * }
* * @since 0.0.1 */ package com.jongsoft.lang.control;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy