Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeffery Miller Ghost-Programmer

View GitHub Profile
View CalUtils.java
package name.mymiller.utils;
import java.time.DayOfWeek;
import java.time.LocalDate;
import java.time.temporal.TemporalAdjusters;
import java.util.ArrayList;
import java.util.List;
import java.util.function.BiFunction;
import java.util.function.Function;
View UnitOfDistance.java
package name.mymiller.lang;
import java.io.Serializable;
/**
* @author jmiller Defined UnitOfMeasures
*/
public enum UnitOfDistance implements Serializable {
// @formatter:off
View GeoShap.java
package name.mymiller.geo;
import java.util.function.Consumer;
public interface GeoShape {
void forEach(final Consumer<? super GeoLocation> action);
GeoPath getGeoPath();
}
View GeoFence.java
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;
View GeoPath.java
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;
View GeoLine.java
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 {
View GeoLocation.javv
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.
View Latitude.java
package name.mymiller.geo;
import name.mymiller.lang.IllegalValueException;
import java.io.Serializable;
/**
* Object for representing Latitude
*
* @author jmiller
View Longitude.java
package name.mymiller.geo;
import name.mymiller.lang.IllegalValueException;
import java.io.Serializable;
/**
* Object for representing Longitude
*
* @author jmiller
View Coordinate.java
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