public class BackReference<T> extends Object
It's useful when building DocumentFieldMetadata
, for instance:
when we build those, the parent type metadata hasn't been built yet (since
it requires every fields to be created). To break the circular dependency,
we provide the DocumentFieldMetadata with a BackReference<TypeMetadata>
,
and we initialize the reference later.
Constructor and Description |
---|
BackReference() |
Modifier and Type | Method and Description |
---|---|
static <T> BackReference<T> |
empty() |
T |
get() |
String |
toString() |
public static <T> BackReference<T> empty()
public T get()
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved