Tabnine Logo
AutoValue_MultiPoint.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.mapbox.geojson.AutoValue_MultiPoint
constructor

Best Java code snippets using com.mapbox.geojson.AutoValue_MultiPoint.<init> (Showing top 6 results out of 315)

origin: mapbox/mapbox-java

/**
 * Create a new instance of this class by defining a list of {@link Point}s which follow the
 * correct specifications described in the Point documentation. Note that there should not be any
 * duplicate points inside the list. <p> Note that if less than 2 points are passed in, a runtime
 * exception will occur. </p>
 *
 * @param points a list of {@link Point}s which make up the LineString geometry
 * @return a new instance of this class defined by the values passed inside this static factory
 *   method
 * @since 3.0.0
 */
public static MultiPoint fromLngLats(@NonNull List<Point> points) {
 return new AutoValue_MultiPoint(TYPE, null, points);
}
origin: com.mapbox.mapboxsdk/mapbox-sdk-geojson

/**
 * Create a new instance of this class by defining a list of {@link Point}s which follow the
 * correct specifications described in the Point documentation. Note that there should not be any
 * duplicate points inside the list. <p> Note that if less than 2 points are passed in, a runtime
 * exception will occur. </p>
 *
 * @param points a list of {@link Point}s which make up the LineString geometry
 * @return a new instance of this class defined by the values passed inside this static factory
 *   method
 * @since 3.0.0
 */
public static MultiPoint fromLngLats(@NonNull List<Point> points) {
 return new AutoValue_MultiPoint(TYPE, null, points);
}
origin: mapbox/mapbox-java

/**
 * Create a new instance of this class by defining a list of {@link Point}s which follow the
 * correct specifications described in the Point documentation. Note that there should not be any
 * duplicate points inside the list. <p> Note that if less than 2 points are passed in, a runtime
 * exception will occur. </p>
 *
 * @param points a list of {@link Point}s which make up the LineString geometry
 * @param bbox   optionally include a bbox definition as a double array
 * @return a new instance of this class defined by the values passed inside this static factory
 *   method
 * @since 3.0.0
 */
public static MultiPoint fromLngLats(@NonNull List<Point> points, @Nullable BoundingBox bbox) {
 return new AutoValue_MultiPoint(TYPE, bbox, points);
}
origin: com.mapbox.mapboxsdk/mapbox-sdk-geojson

/**
 * Create a new instance of this class by defining a list of {@link Point}s which follow the
 * correct specifications described in the Point documentation. Note that there should not be any
 * duplicate points inside the list. <p> Note that if less than 2 points are passed in, a runtime
 * exception will occur. </p>
 *
 * @param points a list of {@link Point}s which make up the LineString geometry
 * @param bbox   optionally include a bbox definition as a double array
 * @return a new instance of this class defined by the values passed inside this static factory
 *   method
 * @since 3.0.0
 */
public static MultiPoint fromLngLats(@NonNull List<Point> points, @Nullable BoundingBox bbox) {
 return new AutoValue_MultiPoint(TYPE, bbox, points);
}
origin: com.mapbox.mapboxsdk/mapbox-sdk-geojson

static MultiPoint fromLngLats(@NonNull double[][] coordinates) {
 ArrayList<Point> converted = new ArrayList<>(coordinates.length);
 for (int i = 0; i < coordinates.length; i++) {
  converted.add(Point.fromLngLat(coordinates[i]));
 }
 return new AutoValue_MultiPoint(TYPE, null, converted);
}
origin: mapbox/mapbox-java

static MultiPoint fromLngLats(@NonNull double[][] coordinates) {
 ArrayList<Point> converted = new ArrayList<>(coordinates.length);
 for (int i = 0; i < coordinates.length; i++) {
  converted.add(Point.fromLngLat(coordinates[i]));
 }
 return new AutoValue_MultiPoint(TYPE, null, converted);
}
com.mapbox.geojsonAutoValue_MultiPoint<init>

Popular methods of AutoValue_MultiPoint

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • requestLocationUpdates (LocationManager)
    • compareTo (BigDecimal)
    • getResourceAsStream (ClassLoader)
    • URLConnection (java.net)
      A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
    • BitSet (java.util)
      The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
    • HashSet (java.util)
      HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
    • Scanner (java.util)
      A parser that parses a text string of primitive types and strings with the help of regular expressio
    • TimeUnit (java.util.concurrent)
      A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
    • FileUtils (org.apache.commons.io)
      General file manipulation utilities. Facilities are provided in the following areas: * writing to a
    • Top plugins for WebStorm
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now