| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc --> |
| <title>TypeDescriptor (Apache Beam 2.38.0-SNAPSHOT)</title> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="TypeDescriptor (Apache Beam 2.38.0-SNAPSHOT)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":9,"i16":9,"i17":10,"i18":10,"i19":10,"i20":10}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/beam/sdk/values/TupleTagList.html" title="class in org.apache.beam.sdk.values"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptors.html" title="class in org.apache.beam.sdk.values"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/beam/sdk/values/TypeDescriptor.html" target="_top">Frames</a></li> |
| <li><a href="TypeDescriptor.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.beam.sdk.values</div> |
| <h2 title="Class TypeDescriptor" class="title">Class TypeDescriptor<T></h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li>java.lang.Object</li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.beam.sdk.values.TypeDescriptor<T></li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>T</code> - the type represented by this <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a></dd> |
| </dl> |
| <dl> |
| <dt>All Implemented Interfaces:</dt> |
| <dd>java.io.Serializable</dd> |
| </dl> |
| <hr> |
| <br> |
| <pre>public abstract class <span class="typeNameLabel">TypeDescriptor<T></span> |
| extends java.lang.Object |
| implements java.io.Serializable</pre> |
| <div class="block">A description of a Java type, including actual generic parameters where possible. |
| |
| <p>To prevent losing actual type arguments due to erasure, create an anonymous subclass with |
| concrete types: |
| |
| <pre><code> |
| TypeDescriptor<List<String>> typeDescriptor = new TypeDescriptor<List<String>>() {}; |
| </code></pre> |
| |
| <p>If the above were not an anonymous subclass, the type <code>List<String></code> would be erased and |
| unavailable at run time.</div> |
| <dl> |
| <dt><span class="seeLabel">See Also:</span></dt> |
| <dd><a href="../../../../../serialized-form.html#org.apache.beam.sdk.values.TypeDescriptor">Serialized Form</a></dd> |
| </dl> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.summary"> |
| <!-- --> |
| </a> |
| <h3>Constructor Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> |
| <caption><span>Constructors</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier</th> |
| <th class="colLast" scope="col">Constructor and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#TypeDescriptor--">TypeDescriptor</a></span>()</code> |
| <div class="block">Creates a <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a> representing the type parameter <code>T</code>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>protected </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#TypeDescriptor-java.lang.Class-">TypeDescriptor</a></span>(java.lang.Class<?> clazz)</code> |
| <div class="block">Creates a <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a> representing the type parameter <code>T</code>, which should |
| resolve to a concrete type in the context of the class <code>clazz</code>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>protected </code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#TypeDescriptor-java.lang.Object-">TypeDescriptor</a></span>(java.lang.Object instance)</code> |
| <div class="block">Creates a <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a> representing the type parameter <code>T</code>, which should |
| resolve to a concrete type in the context of the class <code>clazz</code>.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#equals-java.lang.Object-">equals</a></span>(<a href="https://static.javadoc.io/org.checkerframework/checker-qual/3.10.0/org/checkerframework/checker/nullness/qual/Nullable.html?is-external=true" title="class or interface in org.checkerframework.checker.nullness.qual">@Nullable</a> java.lang.Object other)</code> |
| <div class="block">Two type descriptor are equal if and only if they represent the same type.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>java.util.List<<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><?>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#getArgumentTypes-java.lang.reflect.Method-">getArgumentTypes</a></span>(java.lang.reflect.Method method)</code> |
| <div class="block">Returns a list of argument types for the given method, which must be a part of the class.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>java.lang.Iterable<<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#getClasses--">getClasses</a></span>()</code> |
| <div class="block">Returns a set of <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a>s, one for each superclass (including this class).</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><?></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#getComponentType--">getComponentType</a></span>()</code> |
| <div class="block">Returns the component type if this type is an array type, otherwise returns <code>null</code>.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>java.lang.Iterable<<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#getInterfaces--">getInterfaces</a></span>()</code> |
| <div class="block">Returns a set of <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a>s, one for each interface implemented by this class.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>java.lang.Class<? super <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="type parameter in TypeDescriptor">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#getRawType--">getRawType</a></span>()</code> |
| <div class="block">Returns the <code>Class</code> underlying the <code>Type</code> represented by this <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><? super <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="type parameter in TypeDescriptor">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#getSupertype-java.lang.Class-">getSupertype</a></span>(java.lang.Class<? super <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="type parameter in TypeDescriptor">T</a>> superclass)</code> |
| <div class="block">Returns the generic form of a supertype.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>java.lang.reflect.Type</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#getType--">getType</a></span>()</code> |
| <div class="block">Returns the <code>Type</code> represented by this <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a>.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>java.lang.reflect.TypeVariable<java.lang.Class<? super <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="type parameter in TypeDescriptor">T</a>>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#getTypeParameter-java.lang.String-">getTypeParameter</a></span>(java.lang.String paramName)</code> |
| <div class="block">Returns a <code>TypeVariable</code> for the named type parameter.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>java.lang.Iterable<<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#getTypes--">getTypes</a></span>()</code> |
| <div class="block">Returns a set of <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a>, one for each superclass as well as each |
| interface implemented by this class.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>int</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#hashCode--">hashCode</a></span>()</code> </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#hasUnresolvedParameters--">hasUnresolvedParameters</a></span>()</code> |
| <div class="block">Returns whether this <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a> has any unresolved type parameters, as opposed to |
| being a concrete type.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#isArray--">isArray</a></span>()</code> |
| <div class="block">Returns true if this type is known to be an array type.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#isSubtypeOf-org.apache.beam.sdk.values.TypeDescriptor-">isSubtypeOf</a></span>(<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><?> parent)</code> |
| <div class="block">Return true if this type is a subtype of the given type.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>boolean</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#isSupertypeOf-org.apache.beam.sdk.values.TypeDescriptor-">isSupertypeOf</a></span>(<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><?> source)</code> |
| <div class="block">Returns true if this type is assignable from the given type.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>static <T> <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><T></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#of-java.lang.Class-">of</a></span>(java.lang.Class<T> type)</code> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a> representing the given type.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><?></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#of-java.lang.reflect.Type-">of</a></span>(java.lang.reflect.Type type)</code> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a> representing the given type.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><?></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#resolveType-java.lang.reflect.Type-">resolveType</a></span>(java.lang.reflect.Type type)</code> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a> representing the given type, with type variables resolved |
| according to the specialization in this type.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>java.lang.String</code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#toString--">toString</a></span>()</code> </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code><X> <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="type parameter in TypeDescriptor">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#where-org.apache.beam.sdk.values.TypeParameter-org.apache.beam.sdk.values.TypeDescriptor-">where</a></span>(<a href="../../../../../org/apache/beam/sdk/values/TypeParameter.html" title="class in org.apache.beam.sdk.values">TypeParameter</a><X> typeParameter, |
| <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><X> typeDescriptor)</code> |
| <div class="block">Returns a new <code>TypeDescriptor</code> where the type variable represented by <code>typeParameter</code> are substituted by <code>type</code>.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="type parameter in TypeDescriptor">T</a>></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#where-java.lang.reflect.Type-java.lang.reflect.Type-">where</a></span>(java.lang.reflect.Type formal, |
| java.lang.reflect.Type actual)</code> |
| <div class="block">A more general form of <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#where-org.apache.beam.sdk.values.TypeParameter-org.apache.beam.sdk.values.TypeDescriptor-"><code>where(TypeParameter, TypeDescriptor)</code></a> that returns a new <code>TypeDescriptor</code> by matching <code>formal</code> against <code>actual</code> to resolve type variables in |
| the current <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a>.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.Object</h3> |
| <code>clone, finalize, getClass, notify, notifyAll, wait, wait, wait</code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="constructor.detail"> |
| <!-- --> |
| </a> |
| <h3>Constructor Detail</h3> |
| <a name="TypeDescriptor--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>TypeDescriptor</h4> |
| <pre>protected TypeDescriptor()</pre> |
| <div class="block">Creates a <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a> representing the type parameter <code>T</code>. To use this |
| constructor properly, the type parameter must be a concrete type, for example <code>new |
| TypeDescriptor<List<String>>(){}</code>.</div> |
| </li> |
| </ul> |
| <a name="TypeDescriptor-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>TypeDescriptor</h4> |
| <pre>protected TypeDescriptor(java.lang.Object instance)</pre> |
| <div class="block">Creates a <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a> representing the type parameter <code>T</code>, which should |
| resolve to a concrete type in the context of the class <code>clazz</code>. |
| |
| <p>Unlike <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#TypeDescriptor-java.lang.Class-"><code>TypeDescriptor(Class)</code></a> this will also use context's of the |
| enclosing instances while attempting to resolve the type. This means that the types of any |
| classes instantiated in the concrete instance should be resolvable.</div> |
| </li> |
| </ul> |
| <a name="TypeDescriptor-java.lang.Class-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>TypeDescriptor</h4> |
| <pre>protected TypeDescriptor(java.lang.Class<?> clazz)</pre> |
| <div class="block">Creates a <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a> representing the type parameter <code>T</code>, which should |
| resolve to a concrete type in the context of the class <code>clazz</code>.</div> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="of-java.lang.Class-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>of</h4> |
| <pre>public static <T> <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><T> of(java.lang.Class<T> type)</pre> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a> representing the given type.</div> |
| </li> |
| </ul> |
| <a name="of-java.lang.reflect.Type-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>of</h4> |
| <pre>public static <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><?> of(java.lang.reflect.Type type)</pre> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a> representing the given type.</div> |
| </li> |
| </ul> |
| <a name="getType--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getType</h4> |
| <pre>public java.lang.reflect.Type getType()</pre> |
| <div class="block">Returns the <code>Type</code> represented by this <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a>.</div> |
| </li> |
| </ul> |
| <a name="getRawType--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getRawType</h4> |
| <pre>public java.lang.Class<? super <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="type parameter in TypeDescriptor">T</a>> getRawType()</pre> |
| <div class="block">Returns the <code>Class</code> underlying the <code>Type</code> represented by this <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a>.</div> |
| </li> |
| </ul> |
| <a name="getComponentType--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getComponentType</h4> |
| <pre>public <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><?> getComponentType()</pre> |
| <div class="block">Returns the component type if this type is an array type, otherwise returns <code>null</code>.</div> |
| </li> |
| </ul> |
| <a name="getSupertype-java.lang.Class-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getSupertype</h4> |
| <pre>public final <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><? super <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="type parameter in TypeDescriptor">T</a>> getSupertype(java.lang.Class<? super <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="type parameter in TypeDescriptor">T</a>> superclass)</pre> |
| <div class="block">Returns the generic form of a supertype.</div> |
| </li> |
| </ul> |
| <a name="isArray--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isArray</h4> |
| <pre>public final boolean isArray()</pre> |
| <div class="block">Returns true if this type is known to be an array type.</div> |
| </li> |
| </ul> |
| <a name="getTypeParameter-java.lang.String-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTypeParameter</h4> |
| <pre>public final java.lang.reflect.TypeVariable<java.lang.Class<? super <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="type parameter in TypeDescriptor">T</a>>> getTypeParameter(java.lang.String paramName)</pre> |
| <div class="block">Returns a <code>TypeVariable</code> for the named type parameter. Throws <code>IllegalArgumentException</code> if a type variable by the requested type parameter is not found. |
| |
| <p>For example, <code>new TypeDescriptor<List>(){}.getTypeParameter("T")</code> returns a <code>TypeVariable<? super List></code> representing the formal type parameter <code>T</code>. |
| |
| <p>Do not mistake the type parameters (formal type argument list) with the actual type |
| arguments. For example, if a class <code>Foo</code> extends <code>List<String></code>, it does not make |
| sense to ask for a type parameter, because <code>Foo</code> does not have any.</div> |
| </li> |
| </ul> |
| <a name="isSupertypeOf-org.apache.beam.sdk.values.TypeDescriptor-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isSupertypeOf</h4> |
| <pre>public final boolean isSupertypeOf(<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><?> source)</pre> |
| <div class="block">Returns true if this type is assignable from the given type.</div> |
| </li> |
| </ul> |
| <a name="isSubtypeOf-org.apache.beam.sdk.values.TypeDescriptor-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isSubtypeOf</h4> |
| <pre>public final boolean isSubtypeOf(<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><?> parent)</pre> |
| <div class="block">Return true if this type is a subtype of the given type.</div> |
| </li> |
| </ul> |
| <a name="getArgumentTypes-java.lang.reflect.Method-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getArgumentTypes</h4> |
| <pre>public java.util.List<<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><?>> getArgumentTypes(java.lang.reflect.Method method)</pre> |
| <div class="block">Returns a list of argument types for the given method, which must be a part of the class.</div> |
| </li> |
| </ul> |
| <a name="resolveType-java.lang.reflect.Type-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>resolveType</h4> |
| <pre>public <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><?> resolveType(java.lang.reflect.Type type)</pre> |
| <div class="block">Returns a <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a> representing the given type, with type variables resolved |
| according to the specialization in this type. |
| |
| <p>For example, consider the following class: |
| |
| <pre><code> |
| class MyList implements List<String> { ... } |
| </code></pre> |
| |
| <p>The <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a> returned by |
| |
| <pre><code> |
| TypeDescriptor.of(MyList.class) |
| .resolveType(Mylist.class.getMethod("get", int.class).getGenericReturnType) |
| </code></pre> |
| |
| will represent the type <code>String</code>.</div> |
| </li> |
| </ul> |
| <a name="getTypes--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getTypes</h4> |
| <pre>public java.lang.Iterable<<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a>> getTypes()</pre> |
| <div class="block">Returns a set of <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a>, one for each superclass as well as each |
| interface implemented by this class.</div> |
| </li> |
| </ul> |
| <a name="getInterfaces--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getInterfaces</h4> |
| <pre>public java.lang.Iterable<<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a>> getInterfaces()</pre> |
| <div class="block">Returns a set of <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a>s, one for each interface implemented by this class.</div> |
| </li> |
| </ul> |
| <a name="getClasses--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>getClasses</h4> |
| <pre>public java.lang.Iterable<<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a>> getClasses()</pre> |
| <div class="block">Returns a set of <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a>s, one for each superclass (including this class).</div> |
| </li> |
| </ul> |
| <a name="where-org.apache.beam.sdk.values.TypeParameter-org.apache.beam.sdk.values.TypeDescriptor-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>where</h4> |
| <pre>public <X> <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="type parameter in TypeDescriptor">T</a>> where(<a href="../../../../../org/apache/beam/sdk/values/TypeParameter.html" title="class in org.apache.beam.sdk.values">TypeParameter</a><X> typeParameter, |
| <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><X> typeDescriptor)</pre> |
| <div class="block">Returns a new <code>TypeDescriptor</code> where the type variable represented by <code>typeParameter</code> are substituted by <code>type</code>. For example, it can be used to construct <code>Map<K, V></code> for any <code>K</code> and <code>V</code> type: |
| |
| <pre><code> |
| static <K, V> TypeDescriptor<Map<K, V>> mapOf( |
| TypeDescriptor<K> keyType, TypeDescriptor<V> valueType) { |
| return new TypeDescriptor<Map<K, V>>() {} |
| .where(new TypeParameter<K>() {}, keyType) |
| .where(new TypeParameter<V>() {}, valueType); |
| } |
| </code></pre></div> |
| <dl> |
| <dt><span class="paramLabel">Type Parameters:</span></dt> |
| <dd><code>X</code> - The parameter type</dd> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>typeParameter</code> - the parameter type variable</dd> |
| <dd><code>typeDescriptor</code> - the actual type to substitute</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="where-java.lang.reflect.Type-java.lang.reflect.Type-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>where</h4> |
| <pre>public <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values">TypeDescriptor</a><<a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="type parameter in TypeDescriptor">T</a>> where(java.lang.reflect.Type formal, |
| java.lang.reflect.Type actual)</pre> |
| <div class="block">A more general form of <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html#where-org.apache.beam.sdk.values.TypeParameter-org.apache.beam.sdk.values.TypeDescriptor-"><code>where(TypeParameter, TypeDescriptor)</code></a> that returns a new <code>TypeDescriptor</code> by matching <code>formal</code> against <code>actual</code> to resolve type variables in |
| the current <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a>.</div> |
| </li> |
| </ul> |
| <a name="hasUnresolvedParameters--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>hasUnresolvedParameters</h4> |
| <pre>public boolean hasUnresolvedParameters()</pre> |
| <div class="block">Returns whether this <a href="../../../../../org/apache/beam/sdk/values/TypeDescriptor.html" title="class in org.apache.beam.sdk.values"><code>TypeDescriptor</code></a> has any unresolved type parameters, as opposed to |
| being a concrete type. |
| |
| <p>For example: |
| |
| <pre><code> |
| TypeDescriptor.of(new ArrayList<String>() {}.getClass()).hasUnresolvedTypeParameters() |
| => false, because the anonymous class is instantiated with a concrete type |
| |
| class TestUtils { |
| <T> ArrayList<T> createTypeErasedList() { |
| return new ArrayList<T>() {}; |
| } |
| } |
| |
| TypeDescriptor.of(TestUtils.<String>createTypeErasedList().getClass()) |
| => true, because the type variable T got type-erased and the anonymous ArrayList class |
| is instantiated with an unresolved type variable T. |
| </code></pre></div> |
| </li> |
| </ul> |
| <a name="toString--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>toString</h4> |
| <pre>public java.lang.String toString()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code>toString</code> in class <code>java.lang.Object</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="equals-java.lang.Object-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>equals</h4> |
| <pre>public boolean equals(<a href="https://static.javadoc.io/org.checkerframework/checker-qual/3.10.0/org/checkerframework/checker/nullness/qual/Nullable.html?is-external=true" title="class or interface in org.checkerframework.checker.nullness.qual">@Nullable</a> java.lang.Object other)</pre> |
| <div class="block">Two type descriptor are equal if and only if they represent the same type.</div> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code>equals</code> in class <code>java.lang.Object</code></dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="hashCode--"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>hashCode</h4> |
| <pre>public int hashCode()</pre> |
| <dl> |
| <dt><span class="overrideSpecifyLabel">Overrides:</span></dt> |
| <dd><code>hashCode</code> in class <code>java.lang.Object</code></dd> |
| </dl> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/beam/sdk/values/TupleTagList.html" title="class in org.apache.beam.sdk.values"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/beam/sdk/values/TypeDescriptors.html" title="class in org.apache.beam.sdk.values"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/beam/sdk/values/TypeDescriptor.html" target="_top">Frames</a></li> |
| <li><a href="TypeDescriptor.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li>Field | </li> |
| <li><a href="#constructor.summary">Constr</a> | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li>Field | </li> |
| <li><a href="#constructor.detail">Constr</a> | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| </body> |
| </html> |