Package com.google.common.base

Examples of com.google.common.base.Predicate


  public static Map filterKeys(Map paramMap, Predicate paramPredicate)
  {
    if ((paramMap instanceof SortedMap))
      return filterKeys((SortedMap)paramMap, paramPredicate);
    Preconditions.checkNotNull(paramPredicate);
    Predicate local4 = new Predicate()
    {
      public boolean apply(Map.Entry paramAnonymousEntry)
      {
        return this.val$keyPredicate.apply(paramAnonymousEntry.getKey());
      }
View Full Code Here


  @Beta
  public static SortedMap filterKeys(SortedMap paramSortedMap, Predicate paramPredicate)
  {
    Preconditions.checkNotNull(paramPredicate);
    Predicate local5 = new Predicate()
    {
      public boolean apply(Map.Entry paramAnonymousEntry)
      {
        return this.val$keyPredicate.apply(paramAnonymousEntry.getKey());
      }
View Full Code Here

  public static Map filterValues(Map paramMap, Predicate paramPredicate)
  {
    if ((paramMap instanceof SortedMap))
      return filterValues((SortedMap)paramMap, paramPredicate);
    Preconditions.checkNotNull(paramPredicate);
    Predicate local6 = new Predicate()
    {
      public boolean apply(Map.Entry paramAnonymousEntry)
      {
        return this.val$valuePredicate.apply(paramAnonymousEntry.getValue());
      }
View Full Code Here

  @Beta
  public static SortedMap filterValues(SortedMap paramSortedMap, Predicate paramPredicate)
  {
    Preconditions.checkNotNull(paramPredicate);
    Predicate local7 = new Predicate()
    {
      public boolean apply(Map.Entry paramAnonymousEntry)
      {
        return this.val$valuePredicate.apply(paramAnonymousEntry.getValue());
      }
View Full Code Here

    return (paramSortedMap instanceof FilteredEntrySortedMap) ? filterFiltered((FilteredEntrySortedMap)paramSortedMap, paramPredicate) : new FilteredEntrySortedMap((SortedMap)Preconditions.checkNotNull(paramSortedMap), paramPredicate);
  }

  private static Map filterFiltered(AbstractFilteredMap paramAbstractFilteredMap, Predicate paramPredicate)
  {
    Predicate localPredicate = Predicates.and(paramAbstractFilteredMap.predicate, paramPredicate);
    return new FilteredEntryMap(paramAbstractFilteredMap.unfiltered, localPredicate);
  }
View Full Code Here

    return new FilteredEntryMap(paramAbstractFilteredMap.unfiltered, localPredicate);
  }

  private static SortedMap filterFiltered(FilteredEntrySortedMap paramFilteredEntrySortedMap, Predicate paramPredicate)
  {
    Predicate localPredicate = Predicates.and(paramFilteredEntrySortedMap.predicate, paramPredicate);
    return new FilteredEntrySortedMap(paramFilteredEntrySortedMap.sortedMap(), localPredicate);
  }
View Full Code Here

    }

    public boolean removeAll(final Collection paramCollection)
    {
      Preconditions.checkNotNull(paramCollection);
      Predicate local1 = new Predicate()
      {
        public boolean apply(Object paramAnonymousObject)
        {
          return (Collections2.FilteredCollection.this.predicate.apply(paramAnonymousObject)) && (paramCollection.contains(paramAnonymousObject));
        }
View Full Code Here

    }

    public boolean retainAll(final Collection paramCollection)
    {
      Preconditions.checkNotNull(paramCollection);
      Predicate local2 = new Predicate()
      {
        public boolean apply(Object paramAnonymousObject)
        {
          return (Collections2.FilteredCollection.this.predicate.apply(paramAnonymousObject)) && (!paramCollection.contains(paramAnonymousObject));
        }
View Full Code Here

  @Beta
  @GwtIncompatible("untested")
  public static Multimap filterKeys(Multimap paramMultimap, Predicate paramPredicate)
  {
    Preconditions.checkNotNull(paramPredicate);
    Predicate local4 = new Predicate()
    {
      public boolean apply(Map.Entry paramAnonymousEntry)
      {
        return this.val$keyPredicate.apply(paramAnonymousEntry.getKey());
      }
View Full Code Here

  @Beta
  @GwtIncompatible("untested")
  public static Multimap filterValues(Multimap paramMultimap, Predicate paramPredicate)
  {
    Preconditions.checkNotNull(paramPredicate);
    Predicate local5 = new Predicate()
    {
      public boolean apply(Map.Entry paramAnonymousEntry)
      {
        return this.val$valuePredicate.apply(paramAnonymousEntry.getValue());
      }
View Full Code Here

TOP

Related Classes of com.google.common.base.Predicate

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.