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

goja.core.libs.base.None Maven / Gradle / Ivy

/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * Copyright (c) 2013-2014 sagyf Yang. The Four Group.
 */

package goja.core.libs.base;

import java.util.Collections;
import java.util.Iterator;

/**
 * 

.

* * @author sagyf yang * @version 1.0 2014-09-11 13:26 * @since JDK 1.6 */ class None extends Option{ @Override public boolean isDefined() { return false; } @Override public T get() { throw new IllegalStateException("No value"); } public Iterator iterator() { return Collections.emptyList().iterator(); } @Override public String toString() { return "None"; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy