This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package name.mymiller.utils; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.stream.Collectors; | |
/** | |
* @author jmiller Provide a set of utilities to use on lists. | |
*/ | |
public class ListUtils { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package name.mymiller.geo; | |
import java.io.Serializable; | |
/** | |
* Abstract class that will form the basis of Latitude and Longitude. Basic | |
* functionality is the same between the two types, just the range of values | |
* differentiate. | |
* | |
* @author jmiller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package name.mymiller.geo; | |
import name.mymiller.lang.IllegalValueException; | |
import java.io.Serializable; | |
/** | |
* Object for representing Longitude | |
* | |
* @author jmiller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package name.mymiller.geo; | |
import name.mymiller.lang.IllegalValueException; | |
import java.io.Serializable; | |
/** | |
* Object for representing Latitude | |
* | |
* @author jmiller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package name.mymiller.geo; | |
import name.mymiller.lang.IllegalValueException; | |
import name.mymiller.lang.UnitOfDistance; | |
import java.io.Serializable; | |
/** | |
* Class to represent a Latitude/Longitude location on Earth. Methods to move to | |
* a new location. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package name.mymiller.geo; | |
import java.util.function.Consumer; | |
/** | |
* Class used to represent a line between points on the GeoPath | |
* | |
* @author jmiller | |
*/ | |
public class GeoLine implements GeoShape { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package name.mymiller.geo; | |
import name.mymiller.lang.IllegalValueException; | |
import java.io.Serializable; | |
import java.util.ArrayList; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.ListIterator; | |
import java.util.function.Consumer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ackage name.mymiller.geo; | |
import name.mymiller.lang.IllegalValueException; | |
import java.io.Serializable; | |
import java.util.Collections; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.function.Consumer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package name.mymiller.geo; | |
import java.util.function.Consumer; | |
public interface GeoShape { | |
void forEach(final Consumer<? super GeoLocation> action); | |
GeoPath getGeoPath(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package name.mymiller.lang; | |
import java.io.Serializable; | |
/** | |
* @author jmiller Defined UnitOfMeasures | |
*/ | |
public enum UnitOfDistance implements Serializable { | |
// @formatter:off |
OlderNewer