@@ -82,8 +82,8 @@ public LayoutPreciseValidationBuilder rightInside(LayoutComponent secondLayoutCo
82
82
}
83
83
84
84
public FinishValidationBuilder alignedVerticallyAll (LayoutComponent ... layoutComponents ) {
85
- Integer baseLineRightY = this .getLocation ().getX () + this .getSize ().getWidth () / 2 ;
86
- Integer baseLineLeftY = this .getLocation ().getX ();
85
+ Integer baseLineRightY = ( int )( this .getLocation ().getX () + this .getSize ().getWidth () / 2 ) ;
86
+ Integer baseLineLeftY = ( int ) this .getLocation ().getX ();
87
87
var comparingComponentsNames = getLayoutComponentsNames (layoutComponents );
88
88
Predicate combinedPredicate = (s ) -> true ;
89
89
Arrays .stream (layoutComponents ).forEach (c -> {
@@ -100,7 +100,7 @@ public FinishValidationBuilder alignedVerticallyAll(LayoutComponent... layoutCom
100
100
}
101
101
102
102
public FinishValidationBuilder alignedVerticallyCentered (LayoutComponent ... layoutComponents ) {
103
- Integer baseLineRightY = this .getLocation ().getX () + this .getSize ().getWidth () / 2 ;
103
+ Integer baseLineRightY = ( int )( this .getLocation ().getX () + this .getSize ().getWidth () / 2 ) ;
104
104
var comparingComponentsNames = getLayoutComponentsNames (layoutComponents );
105
105
Predicate combinedPredicate = (s ) -> true ;
106
106
Arrays .stream (layoutComponents ).forEach (c -> {
@@ -114,7 +114,7 @@ public FinishValidationBuilder alignedVerticallyCentered(LayoutComponent... layo
114
114
}
115
115
116
116
public FinishValidationBuilder alignedVerticallyRight (LayoutComponent ... layoutComponents ) {
117
- Integer baseLineRightY = this .getLocation ().getX () + this .getSize ().getWidth ();
117
+ Integer baseLineRightY = ( int )( this .getLocation ().getX () + this .getSize ().getWidth () );
118
118
var comparingComponentsNames = getLayoutComponentsNames (layoutComponents );
119
119
Predicate combinedPredicate = (s ) -> true ;
120
120
Arrays .stream (layoutComponents ).forEach (c -> {
@@ -128,7 +128,7 @@ public FinishValidationBuilder alignedVerticallyRight(LayoutComponent... layoutC
128
128
}
129
129
130
130
public FinishValidationBuilder alignedVerticallyLeft (LayoutComponent ... layoutComponents ) {
131
- Integer baseLineLeftY = this .getLocation ().getX ();
131
+ Integer baseLineLeftY = ( int ) this .getLocation ().getX ();
132
132
var comparingComponentsNames = getLayoutComponentsNames (layoutComponents );
133
133
Predicate combinedPredicate = (s ) -> true ;
134
134
Arrays .stream (layoutComponents ).forEach (c -> combinedPredicate .and ((r ) -> baseLineLeftY .equals (c .getLocation ().getX ())));
@@ -139,8 +139,8 @@ public FinishValidationBuilder alignedVerticallyLeft(LayoutComponent... layoutCo
139
139
}
140
140
141
141
public FinishValidationBuilder alignedHorizontallyAll (LayoutComponent ... layoutComponents ) {
142
- Integer baseLineTopY = this .getLocation ().getY ();
143
- Integer baseLineBottomY = this .getLocation ().getY () + this .getSize ().getHeight ();
142
+ Integer baseLineTopY = ( int ) this .getLocation ().getY ();
143
+ Integer baseLineBottomY = ( int )( this .getLocation ().getY () + this .getSize ().getHeight () );
144
144
var comparingComponentsNames = getLayoutComponentsNames (layoutComponents );
145
145
Predicate combinedPredicate = (s ) -> true ;
146
146
Arrays .stream (layoutComponents ).forEach (c -> {
@@ -157,7 +157,7 @@ public FinishValidationBuilder alignedHorizontallyAll(LayoutComponent... layoutC
157
157
}
158
158
159
159
public FinishValidationBuilder alignedHorizontallyCentered (LayoutComponent ... layoutComponents ) {
160
- Integer baseLineTopY = this .getLocation ().getY () + this .getSize ().getHeight () / 2 ;
160
+ Integer baseLineTopY = ( int )( this .getLocation ().getY () + this .getSize ().getHeight () / 2 ) ;
161
161
var comparingComponentsNames = getLayoutComponentsNames (layoutComponents );
162
162
Predicate combinedPredicate = (s ) -> true ;
163
163
Arrays .stream (layoutComponents ).forEach (c -> {
@@ -171,7 +171,7 @@ public FinishValidationBuilder alignedHorizontallyCentered(LayoutComponent... la
171
171
}
172
172
173
173
public FinishValidationBuilder alignedHorizontallyTop (LayoutComponent ... layoutComponents ) {
174
- Integer baseLineTopY = this .getLocation ().getY ();
174
+ Integer baseLineTopY = ( int ) this .getLocation ().getY ();
175
175
var comparingComponentsNames = getLayoutComponentsNames (layoutComponents );
176
176
Predicate combinedPredicate = (s ) -> true ;
177
177
Arrays .stream (layoutComponents ).forEach (c -> combinedPredicate .and ((r ) -> baseLineTopY .equals (c .getLocation ().getY ())));
@@ -182,7 +182,7 @@ public FinishValidationBuilder alignedHorizontallyTop(LayoutComponent... layoutC
182
182
}
183
183
184
184
public FinishValidationBuilder alignedHorizontallyBottom (LayoutComponent ... layoutComponents ) {
185
- Integer baseLineBottomY = this .getLocation ().getY () + this .getSize ().getHeight ();
185
+ Integer baseLineBottomY = ( int )( this .getLocation ().getY () + this .getSize ().getHeight () );
186
186
var comparingComponentsNames = getLayoutComponentsNames (layoutComponents );
187
187
Predicate combinedPredicate = (s ) -> true ;
188
188
Arrays .stream (layoutComponents ).forEach (c -> {
0 commit comments