title: Firebase Database getting Objects
body: <p>so honestly I just feel stupid right now but I just don't get it...</p>
  
  <p>I want to get one "User" Object from my Firebase Realtime Database, so I add an ValueListener, right?
  I have a Method "getUser" which has "User" as returnvalue. In there I use this: </p>
  
  <pre><code>ValueEventListener valueListener = new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
              for(DataSnapshot snap : dataSnapshot.getChildren())
              {
                  User u = snap.getValue(User.class);
                  if(u.getEmail().equals(userEmail))
                  {
                     //user = u;
                  }
              }
          }
  
          @Override
          public void onCancelled(DatabaseError databaseError) {
  
          }
      };
      //Adding the Listener for Single Event
      fref.child("User").addListenerForSingleValueEvent(valueListener);
      //Using "u" here then
  </code></pre>
  
  <p>Now I don't see a good way get that User "u" out of there, how do I get it? </p>
  
  <p>I know this should be basics, but I just don't get it..</p>
  
  <p>thanks in advance :) </p>