/** * Returns a SIS metadata implementation with the values of the given arbitrary implementation. * * @param object the object to get as a SIS implementation, or {@code null} if none. * @return a SIS implementation containing the values of the given object (may be the * given object itself), or {@code null} if the argument was null. */ static DefaultAssociatedResource castOrCopy(final AggregateInformation object) { if (object == null || object instanceof DefaultAssociatedResource) { return (DefaultAssociatedResource) object; } return new DefaultAssociatedResource(object); }
/** * Returns a SIS metadata implementation with the values of the given arbitrary implementation. * * @param object the object to get as a SIS implementation, or {@code null} if none. * @return a SIS implementation containing the values of the given object (may be the * given object itself), or {@code null} if the argument was null. */ static DefaultAssociatedResource castOrCopy(final AggregateInformation object) { if (object == null || object instanceof DefaultAssociatedResource) { return (DefaultAssociatedResource) object; } return new DefaultAssociatedResource(object); }