title: What is getValue() method in Firebase?
body: <p>I am writing an application in android using Firebase. I am also new to Java and recently I came across with this piece of code which is also mentioned in the Firebase documentation example code (Java). </p>
  
  <pre><code>Post post = dataSnapshot.getValue(Post.class);
  </code></pre>
  
  <p>I understand that Post is a Plain Old Java Object (POJO) but I am not getting the other piece of the code (on right hand side). Is it something to do with serialization in Java or what? An example would be a great help. Thanks in advance. </p>