title: libGDX : Set name for easier identification of any class
body: <p>In my game I created many <code>Array</code>'s libgdx class. I want to find specific array <code>findArray(String name)</code> with name like actors in following code:</p>
  
  <pre><code>public &lt;T extends Actor&gt; T findActor (String name) {
      Array&lt;Actor&gt; children = this.children;
      for (int i = 0, n = children.size; i &lt; n; i++)
          if (name.equals(children.get(i).getName())) return (T)children.get(i);
      for (int i = 0, n = children.size; i &lt; n; i++) {
          Actor child = children.get(i);
          if (child instanceof Group) {
              Actor actor = ((Group)child).findActor(name);
              if (actor != null) return (T)actor;
          }
      }
      return null;
  }
  </code></pre>
  
  <p>How can I do this ??</p>