Interface GeoLocation


public interface GeoLocation
GeoLocation
Example to create an instance using the builder pattern

     GeoLocation geoLocation = GeoLocation.builder()
             .type("{type}")
             .plusCoordinates(coordinatesBuilder -> coordinatesBuilder)
             .build()
 
  • Method Details

    • getType

      @NotNull @NotNull String getType()
      Returns:
      type
    • getCoordinates

      @NotNull @NotNull List<Integer> getCoordinates()
      Returns:
      coordinates
    • setType

      void setType(String type)
      set type
      Parameters:
      type - value to be set
    • setCoordinates

      void setCoordinates(Integer... coordinates)
      set coordinates
      Parameters:
      coordinates - values to be set
    • setCoordinates

      void setCoordinates(List<Integer> coordinates)
      set coordinates
      Parameters:
      coordinates - values to be set
    • of

      static GeoLocation of()
      factory method
      Returns:
      instance of GeoLocation
    • of

      static GeoLocation of(GeoLocation template)
      factory method to create a shallow copy GeoLocation
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static GeoLocation deepCopy(@Nullable GeoLocation template)
      factory method to create a deep copy of GeoLocation
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static GeoLocationBuilder builder()
      builder factory method for GeoLocation
      Returns:
      builder
    • builder

      static GeoLocationBuilder builder(GeoLocation template)
      create builder for GeoLocation instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withGeoLocation

      default <T> T withGeoLocation(Function<GeoLocation,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<GeoLocation> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference