195
195
public sealed interface MemoryLayout extends Constable permits AbstractLayout , SequenceLayout , GroupLayout , PaddingLayout , ValueLayout {
196
196
197
197
/**
198
- * Returns an {@link Optional} containing the nominal descriptor for this
198
+ * {@return an {@link Optional} containing the nominal descriptor for this
199
199
* layout, if one can be constructed, or an empty {@link Optional}
200
- * if one cannot be constructed.
201
- *
202
- * @return An {@link Optional} containing the resulting nominal descriptor,
203
- * or an empty {@link Optional} if one cannot be constructed.
200
+ * if one cannot be constructed}
204
201
*/
205
202
@ Override
206
203
Optional <? extends DynamicConstantDesc <? extends MemoryLayout >> describeConstable ();
207
204
208
205
/**
209
- * Does this layout have a specified size? A layout does not have a specified size if it is (or contains) a sequence layout whose
206
+ * Returns {@code true} if this layout has a specified size. A layout does not have a specified size if it is (or contains) a sequence layout whose
210
207
* size is unspecified (see {@link SequenceLayout#elementCount()}).
211
208
*
212
209
* Value layouts (see {@link ValueLayout}) and padding layouts (see {@link MemoryLayout#paddingLayout(long)})
@@ -217,26 +214,20 @@ public sealed interface MemoryLayout extends Constable permits AbstractLayout, S
217
214
boolean hasSize ();
218
215
219
216
/**
220
- * Computes the layout size, in bits.
221
- *
222
- * @return the layout size, in bits.
217
+ * {@return the layout size, in bits}
223
218
* @throws UnsupportedOperationException if the layout is, or contains, a sequence layout with unspecified size (see {@link SequenceLayout}).
224
219
*/
225
220
long bitSize ();
226
221
227
222
/**
228
- * Computes the layout size, in bytes.
229
- *
230
- * @return the layout size, in bytes.
223
+ * {@return the layout size, in bytes}
231
224
* @throws UnsupportedOperationException if the layout is, or contains, a sequence layout with unspecified size (see {@link SequenceLayout}),
232
225
* or if {@code bitSize()} is not a multiple of 8.
233
226
*/
234
227
long byteSize ();
235
228
236
229
/**
237
- * Return the <em>name</em> (if any) associated with this layout.
238
- *
239
- * @return the layout <em>name</em> (if any).
230
+ * {@return the <em>name</em> (if any) associated with this layout}
240
231
* @see MemoryLayout#withName(String)
241
232
*/
242
233
Optional <String > name ();
@@ -534,8 +525,7 @@ private static <Z> Z computePathOp(LayoutPath path, Function<LayoutPath, Z> fina
534
525
}
535
526
536
527
/**
537
- * Is this a {@linkplain #paddingLayout(long) padding layout} ?
538
- * @return true, if this layout is a padding layout.
528
+ * {@return true, if this layout is a padding layout}
539
529
*/
540
530
boolean isPadding ();
541
531
@@ -651,16 +641,12 @@ static PathElement sequenceElement() {
651
641
boolean equals (Object that );
652
642
653
643
/**
654
- * Returns the hash code value for this layout.
655
- *
656
- * @return the hash code value for this layout.
644
+ * {@return the hash code value for this layout}
657
645
*/
658
646
int hashCode ();
659
647
660
648
/**
661
- * Returns a string representation of this layout.
662
- *
663
- * @return a string representation of this layout.
649
+ * {@return the string representation of this layout}
664
650
*/
665
651
@ Override
666
652
String toString ();
0 commit comments