cactoos icon indicating copy to clipboard operation
cactoos copied to clipboard

Object-Oriented Java primitives, as an alternative to Google Guava and Apache Commons

Results 89 cactoos issues
Sort by recently updated
recently updated
newest added

We can annotate disabled methods which throw `UnsupportedOperationException` (i.e mutation methods on `Collection`) in order to provide an extra clue for static analyzers and IDEs about them.

0crat/new

I think we should move some classes to `cactoos-matchers` instead of keep them in `cactoos`. My list: - `BehavesAsCollection` - `BehavesAsList` - `EmptyClosableReader` - `FakeHandler` - `FakeLogger` - `BehavesAsMap` -...

0crat/new

Now, we've a class `Abbreviated` which does something like: `It's a very long phrase so it should be abbrevia...". But we can want abbreviate for left, like: `Reading file .../abc/cdef/fgh/File.docx`....

0crat/new

The javadoc states that `collection.NoNulls` is `A decorator of {@link Collection} that tolerates no NULLs.` Does this mean it tolerates no `null`s in the underlying collection or just as arguments...

0crat/new

[`ListOf`](https://github.com/yegor256/cactoos/blob/master/src/main/java/org/cactoos/list/ListOf.java), [`MapOf`](https://github.com/yegor256/cactoos/blob/master/src/main/java/org/cactoos/map/MapOf.java), and [`SetOf`](https://github.com/yegor256/cactoos/blob/master/src/main/java/org/cactoos/set/SetOf.java) all contain some variation of a loop that assigns the values of the `src` argument to the wrapped `Collection` in their constructors. As I understand it,...

0crat/new

I see a lot of this (bellow) code repeat over and over: ``` @Override public boolean equals(final Object other) { return new Unchecked( new Or( () -> other == this,...

Let's remove private `copy()` and `copyPartial()` from `TailOf` an put `TeenInput` instead. If it's no applicable, let's create a `Copy` and maybe `PartialCopy` classes.

Is it possible to have a smart class for Text which realizes concept of printer? https://www.yegor256.com/2016/04/05/printers-instead-of-getters.html ```java final class Print implements Text { private final Text text; public Print(final Text...

0crat/new

[Here](https://github.com/yegor256/cactoos/blob/master/src/main/java/org/cactoos/func/Async.java#L75) in `Async` it creates a new `ExecutorService` and [here](https://github.com/yegor256/cactoos/blob/master/src/main/java/org/cactoos/func/Async.java#L90) it submit the `Func` to `Executor` but it doesn't shutdown the `ExecutorService`. So I think it should call `this.executor.shutdown()` after...

Current TextOf has the following public constructor: ``` public TextOf(final Iterable iterable) { this( () -> new Joined( ", ", new Mapped( Object::toString, iterable ) ).asString() ); } ``` I...