/** * Indicates whether the provided object is equal to this entry. The provided * object will only be considered equal to this entry if it is an entry with * the same DN and set of attributes. * * @param o The object for which to make the determination. * * @return {@code true} if the provided object is considered equal to this * entry, or {@code false} if not. */ @Override() public boolean equals(final Object o) { if ((o == null) || (! (o instanceof CompactEntry))) { return false; } return toEntry().equals(((CompactEntry) o).toEntry()); }
/** * Indicates whether the provided object is equal to this entry. The provided * object will only be considered equal to this entry if it is an entry with * the same DN and set of attributes. * * @param o The object for which to make the determination. * * @return {@code true} if the provided object is considered equal to this * entry, or {@code false} if not. */ @Override() public boolean equals(final Object o) { if ((o == null) || (! (o instanceof CompactEntry))) { return false; } return toEntry().equals(((CompactEntry) o).toEntry()); }
/** * Generates a hash code for this entry. * * @return The generated hash code for this entry. */ @Override() public int hashCode() { if (hashCode == -1) { hashCode = toEntry().hashCode(); } return hashCode; }
/** * Appends an LDIF representation of this entry to the provided buffer. * * @param buffer The buffer to which the LDIF representation of this * entry should be written. * @param wrapColumn The column at which long lines should be wrapped. A * value less than or equal to two indicates that no * wrapping should be performed. */ public void toLDIF(final ByteStringBuffer buffer, final int wrapColumn) { toEntry().toLDIF(buffer, wrapColumn); }
/** * Appends an LDIF representation of this entry to the provided buffer. * * @param buffer The buffer to which the LDIF representation of this * entry should be written. * @param wrapColumn The column at which long lines should be wrapped. A * value less than or equal to two indicates that no * wrapping should be performed. */ public void toLDIF(final ByteStringBuffer buffer, final int wrapColumn) { toEntry().toLDIF(buffer, wrapColumn); }
/** * Generates a hash code for this entry. * * @return The generated hash code for this entry. */ @Override() public int hashCode() { if (hashCode == -1) { hashCode = toEntry().hashCode(); } return hashCode; }
/** * Appends an LDIF-formatted string representation of this entry to the * provided buffer. No extra blank lines will be added. * * @param buffer The buffer to which to append the LDIF representation * of this entry. * @param wrapColumn The column at which long lines should be wrapped. A * value less than or equal to two indicates that no * wrapping should be performed. */ public void toLDIFString(final StringBuilder buffer, final int wrapColumn) { toEntry().toLDIFString(buffer, wrapColumn); }
/** * Retrieves an LDIF representation of this entry, with each attribute value * on a separate line. Long lines will be wrapped at the specified column. * * @param wrapColumn The column at which long lines should be wrapped. A * value less than or equal to two indicates that no * wrapping should be performed. * * @return An LDIF representation of this entry. */ public String[] toLDIF(final int wrapColumn) { return toEntry().toLDIF(wrapColumn); }
/** * Retrieves an LDIF representation of this entry, with each attribute value * on a separate line. Long lines will be wrapped at the specified column. * * @param wrapColumn The column at which long lines should be wrapped. A * value less than or equal to two indicates that no * wrapping should be performed. * * @return An LDIF representation of this entry. */ public String[] toLDIF(final int wrapColumn) { return toEntry().toLDIF(wrapColumn); }
/** * Appends an LDIF-formatted string representation of this entry to the * provided buffer. No extra blank lines will be added. * * @param buffer The buffer to which to append the LDIF representation * of this entry. * @param wrapColumn The column at which long lines should be wrapped. A * value less than or equal to two indicates that no * wrapping should be performed. */ public void toLDIFString(final StringBuilder buffer, final int wrapColumn) { toEntry().toLDIFString(buffer, wrapColumn); }
/** * Retrieves the list of attributes with the given base name and all of the * specified options. * * @param baseName The base name (without any options) for the attribute to * retrieve. It must not be {@code null}. * @param options The set of options that should be included in the * attributes that are returned. It may be empty or * {@code null} if all attributes with the specified base * name should be returned, regardless of the options that * they contain (if any). * * @return The list of attributes with the given base name and all of the * specified options. It may be empty if there are no attributes * with the specified base name and set of options. */ public List<Attribute> getAttributesWithOptions(final String baseName, final Set<String> options) { return toEntry().getAttributesWithOptions(baseName, options); }
/** * Retrieves the list of attributes with the given base name and all of the * specified options. * * @param baseName The base name (without any options) for the attribute to * retrieve. It must not be {@code null}. * @param options The set of options that should be included in the * attributes that are returned. It may be empty or * {@code null} if all attributes with the specified base * name should be returned, regardless of the options that * they contain (if any). * * @return The list of attributes with the given base name and all of the * specified options. It may be empty if there are no attributes * with the specified base name and set of options. */ public List<Attribute> getAttributesWithOptions(final String baseName, final Set<String> options) { return toEntry().getAttributesWithOptions(baseName, options); }