Get optional value by path.
@param <T> optional value type
@param clazz type of value
@param map subject
@param path nodes to walk in map
@return value
555631
public static <T> Optional<T> getNullableOptional(final Map map, final Class<T> clazz, final Object... path) {
        return getNullable(map, Optional.class, path);
    }
491579
public static Optional<Object> getValueOptional(Object target, String dPath) {
        return Optional.ofNullable(getValue(target, dPath));
    }
417818
public static Optional<Object> getObjectOptional(Config config, String path) {
        return Optional.ofNullable(getObject(config, path));
    }
902918
public static <T> Optional<List<T>> dotGetList(final Map map, final String pathString, final Class<T> clazz) {
        return dotGet(map, List.class, pathString).map(c -> (List<T>) c);
    }
981163
public static <A, B> Optional<Map<A, B>> dotGetMap(final Map map, final String pathString) {
        return dotGet(map, Map.class, pathString).map(m -> (Map<A, B>) m);
    }
1111381
public static <T> Optional<Optional<T>> getOptional(final List list, final Class<T> clazz, final Integer... path) {
        return get(list, Optional.class, path).map(opt -> (Optional<T>) opt);
    }
201683
public boolean hasPath(String path) {
        Props props = pathMap.get(path);
        return props != null && !props.isEmpty();
    }
285578
public static Optional<Object> dotGet(final Map map, final String pathString) {
        return dotGet(map, Object.class, pathString);
    }
532632
public static <T> T getValue(JsonNode node, String dPath, Class<T> clazz) {
        if (clazz == null) {
            throw new NullPointerException("Class parameter is null!");
        }
        JsonNode temp = getValue(node, dPath);
        return ValueUtils.convertValue(temp, clazz);
    }
1147370
@javax.annotation.Nonnull
    public java.util.Optional<String> optionalFilePath() {
        return java.util.Optional.ofNullable(mFilePath);
    }
1343748
public <T> Optional<T> getFieldOptional(String fieldName, Class<T> clazz) {
        return DPathUtils.getValueOptional(fieldData, fieldName, clazz);
    }
472809
public Optional<InputStream> getResourceAsStream(String path) {
        if (!isDirectory(path)) {
            return Optional.ofNullable(classLoader.getResourceAsStream(prefixPath(path)));
        }
        return Optional.empty();
    }
1312575
public static <T> Optional<Optional<T>> dotGetOptional(
            final Map map, final String pathString, final Class<T> clazz
    ) {
        return dotGet(map, Optional.class, pathString).map(opt -> (Optional<T>) opt);
    }
466470
public static <T> Optional<T> dotGetOptionalUnsafe(
            final Map map, final String pathString, final Class<T> clazz
    ) {
        return dotGetUnsafe(map, Optional.class, pathString);
    }
399221
public static <T> Optional<T> dotGetNullableOptional(
            final Map map, final String pathString, final Class<T> clazz
    ) {
        return dotGetNullable(map, Optional.class, pathString);
    }
927140
public static Optional<Double> getDoubleOptional(Config config, String path) {
        return Optional.ofNullable(getDouble(config, path));
    }
1171790
public static <K,V> Optional<V> getOpt(Map<K,V> map, K key) {
        return Optional.ofNullable(map.get(key));
    }