Geo – Line JAVA

Geo – Line

One of the simplest shapes we can make is GeoLine. It consists of two GeoLocations the start, and end of the line. The line is the simplest of shapes but is used by other shapes to make their structure. View this gist on GitHub… JAVA

Sometimes you need to guarantee a list is safe to use. A simple method can make sure your safe to use the list, or have an empty list that would be safe for use. /** * Guarantees a list will be safe to use, even if null. * @param list List to check i…
Geo – Location JAVA

Geo – Location

So we have Latitude and Longitude, putting those together we have a location now. That is simple enough, but once we have a location, we can use that to derive other locations. Deriving new locations We create the addDistanceEast(), addDistanceWest()…
ListUtils.size() JAVA


Simple yet handy method for your ListUtils class. Handle if null, and return the number of elements in the list. Effective and simple.
List Intersection, Union, & Unique JAVA

List Intersection, Union, & Unique

Ever have two lists that you need to pull the unique elements from? Or need to pull the elements in both? Here is a ListUtils class for doing just those steps. package name.mymiller.extensions.utils; import java.util.ArrayList; import java.util.List;…