On this page
[Java] Class FieldValues
- org.apache.groovy.contracts.util.FieldValues
public class FieldValues
extends Object
This utility is meant to be used to replace direct calls to private field variables in class invariants.
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
<T> |
public static T |
fieldValue(Object obj, String fieldName, Class<T> type) |
Inherited Methods Summary
Method Detail
<T> @SuppressWarnings("unchecked") public static T fieldValue(Object obj, String fieldName, Class<T> type)
© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/org/apache/groovy/contracts/util/FieldValues.html