title: Add all values of an instance of an object to a List
body: <p>Say i have a class 'Dog' with a lot of String values and i want all of those values in a List, would there be any better way than adding every value by themselves?</p>
  
  <p>e.g. take this dummy class, note that all values are Strings if that matters</p>
  
  <pre><code>public class Dog {
      private String breed;
      private String name;
      private String origin;
      [...] a lot more
  
      getter and setter methods
      }
  </code></pre>
  
  <hr>
  
  <pre><code>Dog dog = new Dog([...] bla bla);
  </code></pre>
  
  <p>Would there be any better way to get all those values of an instance into a List than:</p>
  
  <pre><code>public List&lt;String&gt; toList() {
      List&lt;String&gt; list = new ArrayList&lt;String&gt;();
      list.add(dog.getBreed);
      list.add(dog.getName);
      list.add(dog.getOrigin);
      [...]
      return list;
  </code></pre>