From 1e74b0f8f046cc9e69ba9eddbc180bf10ab83e06 Mon Sep 17 00:00:00 2001
From: Mark Craig <mark.craig@forgerock.com>
Date: Thu, 20 Sep 2012 16:58:20 +0000
Subject: [PATCH] CR-701 Fix for OPENDJ-596: Include more examples in LDAP SDK Javadoc

---
 opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/LinkedHashMapEntry.java |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/LinkedHashMapEntry.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/LinkedHashMapEntry.java
index 2f9b7a2..d4fd25c 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/LinkedHashMapEntry.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/LinkedHashMapEntry.java
@@ -38,8 +38,19 @@
  * An implementation of the {@code Entry} interface which uses a
  * {@code LinkedHashMap} for storing attributes. Attributes are returned in the
  * same order that they were added to the entry. All operations are supported by
- * this implementation.
- * <p>
+ * this implementation. For example, you can build an entry like this:
+ *
+ * <pre>
+ * Entry entry = new LinkedHashMapEntry("cn=Bob,ou=People,dc=example,dc=com")
+ *    .addAttribute("cn", "Bob")
+ *    .addAttribute("objectclass", "top")
+ *    .addAttribute("objectclass", "person")
+ *    .addAttribute("objectclass", "organizationalPerson")
+ *    .addAttribute("objectclass", "inetOrgPerson")
+ *    .addAttribute("mail", "subgenius@example.com")
+ *    .addAttribute("sn", "Dobbs");
+ * </pre>
+ *
  * A {@code LinkedHashMapEntry} stores references to attributes which have been
  * added using the {@link #addAttribute} methods. Attributes sharing the same
  * attribute description are merged by adding the values of the new attribute to

--
Gitblit v1.10.0