public static Optional get()

in commons-rdf-simple/src/main/java/org/apache/commons/rdf/simple/Types.java [297:308]


    public static Optional<IRI> get(final IRI nextIRI) {
        if (ALL_TYPES.contains(nextIRI)) {
            // If we know about this IRI, then look through our set to find the
            // object that matches and return it
            for (final IRI nextType : ALL_TYPES) {
                if (nextType.equals(nextIRI)) {
                    return Optional.of(nextType);
                }
            }
        }
        return Optional.empty();
    }