Class Facts

java.lang.Object
com.google.common.truth.Facts

final class Facts extends Object
Helper class that wraps a collection of Fact instances to make them easier to build.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Iterable<Fact>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) Facts
    and(Fact... moreFacts)
    Returns an instance concatenating the facts wrapped by the current instance followed by the given facts.
    (package private) Facts
    and(Facts moreFacts)
    Returns an instance concatenating the facts wrapped by the current instance followed by the given facts.
    (package private) Iterable<Fact>
    Returns the facts wrapped by this instance.
    (package private) static Facts
    facts(Fact... facts)
    Returns an instance wrapping the given facts.
    (package private) static Facts
    Returns an instance wrapping the given facts.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • facts

      static Facts facts(Fact... facts)
      Returns an instance wrapping the given facts.
    • facts

      static Facts facts(Iterable<Fact> facts)
      Returns an instance wrapping the given facts.
    • asIterable

      Iterable<Fact> asIterable()
      Returns the facts wrapped by this instance.
    • and

      Facts and(Facts moreFacts)
      Returns an instance concatenating the facts wrapped by the current instance followed by the given facts.
    • and

      Facts and(Fact... moreFacts)
      Returns an instance concatenating the facts wrapped by the current instance followed by the given facts.