org.modeshape.jcr.query

## Interface BufferManager.Predicate<T>

- All Known Subinterfaces:
    BufferManager.DistinctBuffer<T>
  All Known Implementing Classes:
    BufferManager.CloseableDistinctBuffer
  Enclosing class:
    BufferManager

      public static interface BufferManager.Predicate<T>

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `addIfAbsent(T value)` Add the value to the buffer only if the buffer does not yet contain the value.

- - ### Method Detail

    - #### addIfAbsent

          boolean addIfAbsent(T value)

      Add the value to the buffer only if the buffer does not yet contain the value.
      Parameters:
        `value` - the value
      Returns:
        true if the buffer has not yet seen that value, or false otherwise

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.