Example usage for java.lang UnsupportedOperationException UnsupportedOperationException

List of usage examples for java.lang UnsupportedOperationException UnsupportedOperationException

Introduction

In this page you can find the example usage for java.lang UnsupportedOperationException UnsupportedOperationException.

Prototype

public UnsupportedOperationException() 

Source Link

Document

Constructs an UnsupportedOperationException with no detail message.

Usage

From source file:com.opengamma.analytics.math.interpolation.ExponentialExtrapolator1D.java

@Override
public Interpolator1DDataBundle getDataBundle(final double[] x, final double[] y) {
    throw new UnsupportedOperationException();
}

From source file:CompileString.java

static Iterable<JavaSourceFromString> getJavaSourceFromString(String code) {
    final JavaSourceFromString jsfs;
    jsfs = new JavaSourceFromString("code", code);
    return new Iterable<JavaSourceFromString>() {
        public Iterator<JavaSourceFromString> iterator() {
            return new Iterator<JavaSourceFromString>() {
                boolean isNext = true;

                public boolean hasNext() {
                    return isNext;
                }/*w w  w. j  a v  a2s . c o  m*/

                public JavaSourceFromString next() {
                    if (!isNext)
                        throw new NoSuchElementException();
                    isNext = false;
                    return jsfs;
                }

                public void remove() {
                    throw new UnsupportedOperationException();
                }
            };
        }
    };
}

From source file:tpt.dbweb.cat.evaluation.EvaluationStatistics.java

public void addMicro(EvaluationStatistics eval) {
    throw new UnsupportedOperationException();
}

From source file:Main.java

/**
 * Wraps an <code>ListIterator</code> and returns a <code>ListIterator</code>
 * that cannot modify the underlying list.
 * All methods that could be used to modify the list throw
 * <code>UnsupportedOperationException</code>
 * @param underlying original list iterator
 * @param <T> element type//from  www . j  ava  2s .  c  om
 * @return unmodifiable list iterator
 */
@Nonnull
public static <T> ListIterator<T> unmodifiableListIterator(final @Nonnull ListIterator<T> underlying) {
    return new ListIterator<T>() {
        public boolean hasNext() {
            return underlying.hasNext();
        }

        public T next() {
            return underlying.next();
        }

        public boolean hasPrevious() {
            return underlying.hasPrevious();
        }

        public T previous() {
            return underlying.previous();
        }

        public int nextIndex() {
            return underlying.nextIndex();
        }

        public int previousIndex() {
            return underlying.previousIndex();
        }

        public void remove() {
            throw new UnsupportedOperationException();
        }

        public void set(T t) {
            throw new UnsupportedOperationException();
        }

        public void add(T t) {
            throw new UnsupportedOperationException();
        }
    };
}

From source file:springfox.documentation.schema.TypeForTestingPropertyNames.java

public int getProp() {
    throw new UnsupportedOperationException();
}

From source file:com.excilys.ebi.spring.dbunit.utils.ApplicationContextUtils.java

private ApplicationContextUtils() {
    throw new UnsupportedOperationException();
}

From source file:springfox.documentation.builders.PathSelectors.java

private PathSelectors() {
    throw new UnsupportedOperationException();
}

From source file:diuf.unifr.ch.first.xwot.rxtx.notifications.JAXBEntity.java

@Override
public InputStream getContent() throws IOException {
    // Omitted for brevity
    throw new UnsupportedOperationException();
}

From source file:com.trenako.utility.Utils.java

private Utils() {
    throw new UnsupportedOperationException();
}

From source file:com.sfs.whichdoctor.xml.writer.helper.SpecialtyXmlHelper.java

/**
 * Instantiates a new specialty xml helper.
 */
protected SpecialtyXmlHelper() {
    throw new UnsupportedOperationException();
}