Lines Matching defs:descriptors
197 * the given descriptors. Every field name that appears in any of
198 * the descriptors will appear in the result with the
200 * to any of the descriptors do not affect the ImmutableDescriptor
212 * @param descriptors the descriptors to be combined. Any of the
213 * descriptors can be null, in which case it is skipped.
216 * descriptors. The returned object may be identical to one of the
217 * input descriptors if it is an ImmutableDescriptor that contains all of
226 public static ImmutableDescriptor union(Descriptor... descriptors) {
229 int index = findNonEmpty(descriptors, 0);
232 if (descriptors[index] instanceof ImmutableDescriptor
233 && findNonEmpty(descriptors, index + 1) < 0)
234 return (ImmutableDescriptor) descriptors[index];
239 for (Descriptor d : descriptors) {