diff --git a/firebase-database/src/main/java/com/google/firebase/database/DataSnapshot.java b/firebase-database/src/main/java/com/google/firebase/database/DataSnapshot.java index 11db5a93b2f..57c6ed89578 100644 --- a/firebase-database/src/main/java/com/google/firebase/database/DataSnapshot.java +++ b/firebase-database/src/main/java/com/google/firebase/database/DataSnapshot.java @@ -166,7 +166,7 @@ public Object getValue(boolean useExportFormat) { * * An example class might look like: * - *

+   * 
    *     class Message {
    *         private String author;
    *         private String text;
@@ -190,7 +190,7 @@ public Object getValue(boolean useExportFormat) {
    *
    *     // Later
    *     Message m = snapshot.getValue(Message.class);
-   * 
+ *
* * @param valueType The class into which this snapshot should be marshalled * @param The type to return. Implicitly defined from the class passed in @@ -208,10 +208,10 @@ public T getValue(@NonNull Class valueType) { * properly-typed Collection. So, in the case where you want a {@link java.util.List} of Message * instances, you will need to do something like the following: * - *

+   * 
    *     GenericTypeIndicator<List<Message>> t = new GenericTypeIndicator<List<Message>>() {};
    *     List<Message> messages = snapshot.getValue(t);
-   * 
+ *
* * It is important to use a subclass of {@link GenericTypeIndicator}. See {@link * GenericTypeIndicator} for more details @@ -255,11 +255,13 @@ public String getKey() { /** * Gives access to all of the immediate children of this snapshot. Can be used in native for - * loops: - *
for (DataSnapshot child : parent.getChildren()) { - *
    ... - *
} - *
+ * loops: + * + *
+   * for (DataSnapshot child : parent.getChildren()) {
+   *       ...
+   * }
+   * 
* * @return The immediate children of this snapshot */ diff --git a/firebase-database/src/main/java/com/google/firebase/database/GenericTypeIndicator.java b/firebase-database/src/main/java/com/google/firebase/database/GenericTypeIndicator.java index 0d6d099e6e4..ea447861a7b 100644 --- a/firebase-database/src/main/java/com/google/firebase/database/GenericTypeIndicator.java +++ b/firebase-database/src/main/java/com/google/firebase/database/GenericTypeIndicator.java @@ -25,7 +25,7 @@ * {@link DataSnapshot}:
*
* - *

+ * 
  *     class Message {
  *         private String author;
  *         private String text;
@@ -51,7 +51,7 @@
  *     GenericTypeIndicator<List<Message>> t = new GenericTypeIndicator<List<Message>>() {};
  *     List<Message> messages = snapshot.getValue(t);
  *
- * 
+ *
* * @param The type of generic collection that this instance servers as an indicator for */ diff --git a/firebase-database/src/main/java/com/google/firebase/database/MutableData.java b/firebase-database/src/main/java/com/google/firebase/database/MutableData.java index fda1c2a7c7a..43752fe7648 100644 --- a/firebase-database/src/main/java/com/google/firebase/database/MutableData.java +++ b/firebase-database/src/main/java/com/google/firebase/database/MutableData.java @@ -91,11 +91,13 @@ public long getChildrenCount() { } /** - * Used to iterate over the immediate children at this location - *
for (MutableData child : parent.getChildren()) { - *
    ... - *
} - *
+ * Used to iterate over the immediate children at this location + * + *
+   *     for (MutableData child : parent.getChildren()) {
+   *             ...
+   *     }
+   * 
* * @return The immediate children at this location */ @@ -196,7 +198,7 @@ public Object getValue() { * * An example class might look like: * - *

+   * 
    *     class Message {
    *         private String author;
    *         private String text;
@@ -220,7 +222,7 @@ public Object getValue() {
    *
    *     // Later
    *     Message m = mutableData.getValue(Message.class);
-   * 
+ *
* * @param valueType The class into which this data in this instance should be marshalled * @param The type to return. Implicitly defined from the class passed in @@ -238,11 +240,11 @@ public T getValue(@NonNull Class valueType) { * properly-typed Collection. So, in the case where you want a {@link java.util.List} of Message * instances, you will need to do something like the following: * - *

+   * 
    *     GenericTypeIndicator<List<Message>> t =
    *         new GenericTypeIndicator<List<Message>>() {};
    *     List<Message> messages = mutableData.getValue(t);
-   * 
+ *
* * It is important to use a subclass of {@link GenericTypeIndicator}. See {@link * GenericTypeIndicator} for more details