옵셔널

    Optional

    java 8 Optional Optional (Java Platform SE 8 ) A container object which may or may not contain a non-null value. If a value is present, isPresent() will return true and get() will return the value. Additional methods that depend on the presence or absence of a contained value are provided, such as orEl docs.oracle.com Optional을 사용하기 위해서는 선언해주어야 합니다. empty() empty() 메소드는 일반적으로 사용되는 비어있는 Optional ..