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

com.tinkerpop.gremlin.process.util.FastNoSuchElementException Maven / Gradle / Ivy

package com.tinkerpop.gremlin.process.util;

import java.util.NoSuchElementException;

/**
 * Retrieve a singleton, fast {@link java.util.NoSuchElementException} without a stack trace.
 */
public class FastNoSuchElementException extends NoSuchElementException {

    private static final long serialVersionUID = 2303108654138257697L;
    private static final FastNoSuchElementException instance = new FastNoSuchElementException();

    private FastNoSuchElementException() {
    }

    /**
     * Retrieve a singleton, fast {@link NoSuchElementException} without a stack trace.
     */
    public static NoSuchElementException instance() {
        return instance;
    }

    @Override
    public synchronized Throwable fillInStackTrace() {
        return this;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy