About ImageCommand
All command-classes subclass ImageCommand, which itself subclasses org.im4java.process.ProcessStarter. The latter class wraps java.lang.ProcessBuilder, handles input and output streams and supports asynchronous execution.
The iterators returned by this class's iterator and listIterator methods are fail-fast: if the list is structurally modified at any time after the iterator is created, in any way except through the iterator's own remove or add methods, the iterator will throw a ConcurrentModificationException. Thus, in the face of concurrent modification, the iterator fails quickly and cleanly, rather than risking arbitrary, non-deterministic behavior at an undetermined time in the future.
List<String> names = ....
Iterator<String> i = names.iterator();
while (i.hasNext()) {
String s = i.next(); // must be called before you can call i.remove()
// Do something
i.remove();
}
class A {
public void superMethod() {}
}
class B extends A {
@Override
public void superMethod() {}
}
package jtests;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeFormatterBuilder;
public class MyTest3 {
public static void main(String[] args) {
DateTimeFormatter fmt = new DateTimeFormatterBuilder()
.appendPattern("dd.MM.yyyy. HH:mm:ss")
.toFormatter();
LocalDateTime t1 = LocalDateTime.parse("01.01.2016. 00:00:00", fmt);
LocalDateTime t2 = LocalDateTime.parse("01.01.2013. 00:00:00", fmt);
System.out.println(t1);
System.out.println(t2);
System.out.println(t1.isAfter(t2));
System.out.println(t2.isAfter(t1));
}
}