private DefaultLoadingResult(List<O> loadedObjects) { this.loadedObjects = CollectionHelper.toImmutableList( loadedObjects ); }
private DefaultLoadingResult(List<O> loadedObjects) { this.loadedObjects = CollectionHelper.toImmutableList( loadedObjects ); }
SpatialWithinPredicateFieldSetContextImpl(CommonState<B> commonState, List<String> absoluteFieldPaths) { this.commonState = commonState; this.commonState.add( this ); this.absoluteFieldPaths = CollectionHelper.toImmutableList( absoluteFieldPaths ); this.predicateBuilders = new ArrayList<>( absoluteFieldPaths.size() ); }
CompositeBeanHolder(List<? extends BeanHolder<? extends T>> delegates) { this.delegates = delegates; List<T> tmp = new ArrayList<>( delegates.size() ); for ( BeanHolder<? extends T> delegate : delegates ) { tmp.add( delegate.get() ); } this.instances = CollectionHelper.toImmutableList( tmp ); }
CompositeBeanHolder(List<? extends BeanHolder<? extends T>> delegates) { this.delegates = delegates; List<T> tmp = new ArrayList<>( delegates.size() ); for ( BeanHolder<? extends T> delegate : delegates ) { tmp.add( delegate.get() ); } this.instances = CollectionHelper.toImmutableList( tmp ); }
SpatialWithinPredicateFieldSetContextImpl(CommonState<B> commonState, List<String> absoluteFieldPaths) { this.commonState = commonState; this.commonState.add( this ); this.absoluteFieldPaths = CollectionHelper.toImmutableList( absoluteFieldPaths ); this.predicateBuilders = new ArrayList<>( absoluteFieldPaths.size() ); }
ImmutableGeoPolygon(GeoPoint firstPoint, GeoPoint secondPoint, GeoPoint thirdPoint, GeoPoint fourthPoint, GeoPoint... additionalPoints) { List<GeoPoint> points = new ArrayList<>(); points.add( firstPoint ); points.add( secondPoint ); points.add( thirdPoint ); points.add( fourthPoint ); Collections.addAll( points, additionalPoints ); GeoPoint lastPoint = points.get( points.size() - 1 ); if ( !firstPoint.equals( lastPoint ) ) { throw log.invalidGeoPolygonFirstPointNotIdenticalToLastPoint( firstPoint, lastPoint ); } this.points = CollectionHelper.toImmutableList( points ); }
ImmutableGeoPolygon(GeoPoint firstPoint, GeoPoint secondPoint, GeoPoint thirdPoint, GeoPoint fourthPoint, GeoPoint... additionalPoints) { List<GeoPoint> points = new ArrayList<>(); points.add( firstPoint ); points.add( secondPoint ); points.add( thirdPoint ); points.add( fourthPoint ); Collections.addAll( points, additionalPoints ); GeoPoint lastPoint = points.get( points.size() - 1 ); if ( !firstPoint.equals( lastPoint ) ) { throw log.invalidGeoPolygonFirstPointNotIdenticalToLastPoint( firstPoint, lastPoint ); } this.points = CollectionHelper.toImmutableList( points ); }
ImmutableGeoPolygon(List<GeoPoint> points) { Contracts.assertNotNull( points, "points" ); GeoPoint firstPoint = points.get( 0 ); GeoPoint lastPoint = points.get( points.size() - 1 ); if ( !firstPoint.equals( lastPoint ) ) { throw log.invalidGeoPolygonFirstPointNotIdenticalToLastPoint( firstPoint, lastPoint ); } this.points = CollectionHelper.toImmutableList( new ArrayList<>( points ) ); }
ImmutableGeoPolygon(List<GeoPoint> points) { Contracts.assertNotNull( points, "points" ); GeoPoint firstPoint = points.get( 0 ); GeoPoint lastPoint = points.get( points.size() - 1 ); if ( !firstPoint.equals( lastPoint ) ) { throw log.invalidGeoPolygonFirstPointNotIdenticalToLastPoint( firstPoint, lastPoint ); } this.points = CollectionHelper.toImmutableList( new ArrayList<>( points ) ); }
/** * Create a {@link GeoPolygon} from a list of points. * <p> * The first and last points must be identical. * * @param points The list of points. Must not be null. Must contain at least four points. * @return The corresponding {@link GeoPolygon}. * @throws IllegalArgumentException If the list is null, or if the first and last points are not identical. */ static GeoPolygon of(List<GeoPoint> points) { Contracts.assertNotNull( points, "points" ); return new ImmutableGeoPolygon( CollectionHelper.toImmutableList( new ArrayList<>( points ) ) ); }
/** * Create a {@link GeoPolygon} from a list of points. * <p> * The first and last points must be identical. * * @param points The list of points. Must not be null. Must contain at least four points. * @return The corresponding {@link GeoPolygon}. * @throws IllegalArgumentException If the list is null, or if the first and last points are not identical. */ static GeoPolygon of(List<GeoPoint> points) { Contracts.assertNotNull( points, "points" ); return new ImmutableGeoPolygon( CollectionHelper.toImmutableList( new ArrayList<>( points ) ) ); }
Collections.addAll( points, additionalPoints ); return new ImmutableGeoPolygon( CollectionHelper.toImmutableList( points ) );
Collections.addAll( points, additionalPoints ); return new ImmutableGeoPolygon( CollectionHelper.toImmutableList( points ) );
AnnotationProcessorProvider(FailureCollector rootFailureCollector) { AnnotationProcessorHelper helper = new AnnotationProcessorHelper( rootFailureCollector ); this.typeAnnotationProcessors = CollectionHelper.toImmutableList( CollectionHelper.asList( new RoutingKeyBridgeProcessor( helper ), new TypeBridgeProcessor( helper ) ) ); this.propertyAnnotationProcessors = CollectionHelper.toImmutableList( CollectionHelper.asList( new MarkerProcessor( helper ), new AssociationInverseSideProcessor( helper ), new IndexingDependencyProcessor( helper ), new DocumentIdProcessor( helper ), new PropertyBridgeProcessor( helper ), new GenericFieldProcessor( helper ), new FullTextFieldProcessor( helper ), new KeywordFieldProcessor( helper ), new IndexedEmbeddedProcessor( helper ) ) ); }
AnnotationProcessorProvider(FailureCollector rootFailureCollector) { AnnotationProcessorHelper helper = new AnnotationProcessorHelper( rootFailureCollector ); this.typeAnnotationProcessors = CollectionHelper.toImmutableList( CollectionHelper.asList( new RoutingKeyBridgeProcessor( helper ), new TypeBridgeProcessor( helper ) ) ); this.propertyAnnotationProcessors = CollectionHelper.toImmutableList( CollectionHelper.asList( new MarkerProcessor( helper ), new AssociationInverseSideProcessor( helper ), new IndexingDependencyProcessor( helper ), new DocumentIdProcessor( helper ), new PropertyBridgeProcessor( helper ), new GenericFieldProcessor( helper ), new FullTextFieldProcessor( helper ), new KeywordFieldProcessor( helper ), new IndexedEmbeddedProcessor( helper ) ) ); }