diff --git a/src/examples/org/tensorics/core/examples/meteo/simple/SimpleMeteoExample.java b/src/examples/org/tensorics/core/examples/meteo/simple/SimpleMeteoExample.java index 6a0e7325e..4bfe6cd53 100644 --- a/src/examples/org/tensorics/core/examples/meteo/simple/SimpleMeteoExample.java +++ b/src/examples/org/tensorics/core/examples/meteo/simple/SimpleMeteoExample.java @@ -41,7 +41,7 @@ private void getByStaticMethodsWithStaticImports() { private void loopThroughEntries() { // tag::loopThroughEntries[] - for (Entry entry : temperatures.asMap().entrySet()) { + for (Entry entry : Tensorics.mapFrom(temperatures).entrySet()) { Position position = entry.getKey(); double value = entry.getValue(); System.out.println(position + "\t->\t" + value); diff --git a/src/java/org/tensorics/core/lang/Tensorics.java b/src/java/org/tensorics/core/lang/Tensorics.java index e03204c74..2a2f3b215 100644 --- a/src/java/org/tensorics/core/lang/Tensorics.java +++ b/src/java/org/tensorics/core/lang/Tensorics.java @@ -57,11 +57,14 @@ import com.google.common.base.Optional; /** - * The main entry point for constructing and structural manipulation of tensorics. If mathematical operations are - * required, then you should either inherit from {@link TensoricSupport} (or one of its convenience implementations) or - * use the {@link #using(ExtendedField)} method (only recommended for one-liners). + * The main entry point for constructing and structural manipulation of + * tensorics. If mathematical operations are required, then you should either + * inherit from {@link TensoricSupport} (or one of its convenience + * implementations) or use the {@link #using(ExtendedField)} method (only + * recommended for one-liners). *

- * Additional utilities for supporting classes can be found in the corresponding utility classes. E.g. + * Additional utilities for supporting classes can be found in the corresponding + * utility classes. E.g. *