Class GeoPosition.Builder

    • Method Detail

      • setLongitude

        public GeoPosition.Builder setLongitude​(int pLongitude)
        Method sets attribute longitude.
        Parameters:
        pLongitude - Value to which longitude should be set.
        Returns:
        GeoPosition.Builder Instance of this builder to support chaining setters. Method never returns null.
      • setLatitude

        public GeoPosition.Builder setLatitude​(int pLatitude)
        Method sets attribute latitude.
        Parameters:
        pLatitude - Value to which latitude should be set.
        Returns:
        GeoPosition.Builder Instance of this builder to support chaining setters. Method never returns null.
      • build

        public GeoPosition build()
        Method creates a new instance of class GeoPosition. The object will be initialized with the values of the builder.
        Returns:
        GeoPosition Created object. The method never returns null.
      • buildValidated

        public GeoPosition buildValidated()
                                   throws javax.validation.ConstraintViolationException
        Method creates a new validated instance of class GeoPosition. The object will be initialized with the values of the builder and validated afterwards.
        Returns:
        GeoPosition Created and validated object. The method never returns null.
        Throws:
        javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.