- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {LocalDateTime l =
new LocalDateTime()
LocalDateTime.now()
DateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
- Smart code suggestions by Codota
}
/** * @author Christoph Strobl */ @Data public class Planet { final @Id String name; final @GeoSpatialIndexed Point coordinates; }
/** * Value object to represent an {@link Address}. * * @author Oliver Gierke */ @Value public static class Address { String street, city, zip; @GeoSpatialIndexed(type = GEO_2DSPHERE) Point location; /* * (non-Javadoc) * @see java.lang.Object#toString() */ public String toString() { return String.format("%s, %s %s", street, zip, city); } } }
@Value public static class Address { String street, city, zip; @GeoSpatialIndexed(type = GeoSpatialIndexType.GEO_2DSPHERE) Point location; } }
/** * Value object to represent an {@link Address}. * * @author Oliver Gierke */ @Value public class Address { private final String street, city, zip; private final @GeoSpatialIndexed Point location; }
@JsonIgnore private final @GeoSpatialIndexed Point location; private String state;