/** * Creates an <strong>immutable</strong> {@link java.util.List} view on top of this {@code Seq} * that is passed to the given {@code action}. * * @param action A side-effecting unit of work that operates on an immutable {@code java.util.List} view. * @return this instance * @see Seq#asJava() */ @GwtIncompatible Seq<T> asJava(Consumer<? super java.util.List<T>> action);
/** * Creates a <strong>mutable</strong> {@link java.util.List} view on top of this {@code Seq}, * i.e. all mutator methods of the {@link java.util.List} are implemented. * * @return A new mutable {@link java.util.Collection} view on this {@code Traversable}. * @see Seq#asJava() */ @GwtIncompatible java.util.List<T> asJavaMutable();
/** * {@code readObject} method for the serialization proxy pattern. * <p> * Guarantees that the serialization system will never generate a serialized instance of the enclosing class. * * @param stream An object serialization stream. * @throws java.io.InvalidObjectException This method will throw with the message "Proxy required". */ @GwtIncompatible("The Java serialization protocol is explicitly not supported") private void readObject(ObjectInputStream stream) throws InvalidObjectException { throw new InvalidObjectException("Proxy required"); }
/** * {@code readObject} method for the serialization proxy pattern. * <p> * Guarantees that the serialization system will never generate a serialized instance of the enclosing class. * * @param stream An object serialization stream. * @throws java.io.InvalidObjectException This method will throw with the message "Proxy required". */ @GwtIncompatible("The Java serialization protocol is explicitly not supported") private void readObject(ObjectInputStream stream) throws InvalidObjectException { throw new InvalidObjectException("Proxy required"); }
@GwtIncompatible("The Java serialization protocol is explicitly not supported") private void readObject(ObjectInputStream stream) throws InvalidObjectException { throw new InvalidObjectException("Proxy required"); } }
/** * {@code readObject} method for the serialization proxy pattern. * <p> * Guarantees that the serialization system will never generate a serialized instance of the enclosing class. * * @param stream An object serialization stream. * @throws java.io.InvalidObjectException This method will throw with the message "Proxy required". */ @GwtIncompatible("The Java serialization protocol is explicitly not supported") private void readObject(ObjectInputStream stream) throws InvalidObjectException { throw new InvalidObjectException("Proxy required"); }
@GwtIncompatible @Override default Stream<T> asJavaMutable(Consumer<? super java.util.List<T>> action) { return Collections.asJava(this, action, MUTABLE); }
@GwtIncompatible @Override public java.util.List<T> asJava() { return JavaConverters.asJava(this, IMMUTABLE); }
@GwtIncompatible @Override public java.util.List<T> asJavaMutable() { return JavaConverters.asJava(this, MUTABLE); }
@GwtIncompatible @Override public Array<T> asJavaMutable(Consumer<? super java.util.List<T>> action) { return Collections.asJava(this, action, MUTABLE); }
@GwtIncompatible @Override public CharSeq asJavaMutable(Consumer<? super java.util.List<Character>> action) { return Collections.asJava(this, action, MUTABLE); }
@GwtIncompatible @Override default List<T> asJavaMutable(Consumer<? super java.util.List<T>> action) { return Collections.asJava(this, action, MUTABLE); }
@GwtIncompatible @Override default java.util.List<T> asJavaMutable() { return JavaConverters.asJava(this, MUTABLE); }
@GwtIncompatible @Override public Vector<T> asJava(Consumer<? super java.util.List<T>> action) { return Collections.asJava(this, action, IMMUTABLE); }
@GwtIncompatible @Override default java.util.List<T> asJava() { return JavaConverters.asJava(this, IMMUTABLE); }
/** * {@code writeReplace} method for the serialization proxy pattern. * <p> * The presence of this method causes the serialization system to emit a SerializationProxy instance instead of * an instance of the enclosing class. * * @return A SerializationProxy for this enclosing class. */ @GwtIncompatible("The Java serialization protocol is explicitly not supported") private Object writeReplace() { return new SerializationProxy<>(this); }
@GwtIncompatible @Override public java.util.List<T> asJava() { return JavaConverters.asJava(this, IMMUTABLE); }
@GwtIncompatible @Override public java.util.List<T> asJavaMutable() { return JavaConverters.asJava(this, MUTABLE); }
@GwtIncompatible @Override public java.util.List<Character> asJava() { return JavaConverters.asJava(this, IMMUTABLE); }
@GwtIncompatible("BigDecimalHelper is GwtIncompatible") static Iterator<Double> rangeBy(double from, double toExclusive, double step) { final BigDecimal fromDecimal = asDecimal(from), toDecimal = asDecimal(toExclusive), stepDecimal = asDecimal(step); return rangeBy(fromDecimal, toDecimal, stepDecimal).map(BigDecimal::doubleValue); }