Package org.assertj.guava.api
Interface InstanceOfAssertFactories
-
- All Known Implementing Classes:
Assertions
public interface InstanceOfAssertFactoriesInstanceOfAssertFactoryinstances for Guava types.- Since:
- 3.3.0
- See Also:
InstanceOfAssertFactories
-
-
Field Summary
Fields Modifier and Type Field Description static InstanceOfAssertFactory<com.google.common.io.ByteSource,ByteSourceAssert>BYTE_SOURCEInstanceOfAssertFactoryfor aByteSource.static InstanceOfAssertFactory<com.google.common.collect.Multimap,MultimapAssert<java.lang.Object,java.lang.Object>>MULTIMAPstatic InstanceOfAssertFactory<com.google.common.collect.Multiset,MultisetAssert<java.lang.Object>>MULTISETstatic InstanceOfAssertFactory<com.google.common.base.Optional,OptionalAssert<java.lang.Object>>OPTIONALstatic InstanceOfAssertFactory<com.google.common.collect.Table,TableAssert<java.lang.Object,java.lang.Object,java.lang.Object>>TABLEInstanceOfAssertFactoryfor aTable, assumingObjectas row key type, column key type and value type.
-
Method Summary
Static Methods Modifier and Type Method Description static <K,V>
InstanceOfAssertFactory<com.google.common.collect.Multimap,MultimapAssert<K,V>>multimap(java.lang.Class<K> keyType, java.lang.Class<V> valueType)InstanceOfAssertFactoryfor aMultimap.static <ELEMENT> InstanceOfAssertFactory<com.google.common.collect.Multiset,MultisetAssert<ELEMENT>>multiset(java.lang.Class<ELEMENT> elementType)InstanceOfAssertFactoryfor aMultiset.static <VALUE> InstanceOfAssertFactory<com.google.common.base.Optional,OptionalAssert<VALUE>>optional(java.lang.Class<VALUE> resultType)InstanceOfAssertFactoryfor anOptional.static <C extends java.lang.Comparable<C>>
InstanceOfAssertFactory<com.google.common.collect.Range,RangeAssert<C>>range(java.lang.Class<C> comparableType)InstanceOfAssertFactoryfor aRange.static <K extends java.lang.Comparable<K>,V>
InstanceOfAssertFactory<com.google.common.collect.RangeMap,RangeMapAssert<K,V>>rangeMap(java.lang.Class<K> keyType, java.lang.Class<V> valueType)InstanceOfAssertFactoryfor aRangeMap.static <T extends java.lang.Comparable<T>>
InstanceOfAssertFactory<com.google.common.collect.RangeSet,RangeSetAssert<T>>rangeSet(java.lang.Class<T> comparableType)InstanceOfAssertFactoryfor aRangeSet.static <R,C,V>
InstanceOfAssertFactory<com.google.common.collect.Table,TableAssert<R,C,V>>table(java.lang.Class<R> rowKeyType, java.lang.Class<C> columnKeyType, java.lang.Class<V> valueType)InstanceOfAssertFactoryfor aTable.
-
-
-
Field Detail
-
BYTE_SOURCE
static final InstanceOfAssertFactory<com.google.common.io.ByteSource,ByteSourceAssert> BYTE_SOURCE
InstanceOfAssertFactoryfor aByteSource.
-
MULTIMAP
static final InstanceOfAssertFactory<com.google.common.collect.Multimap,MultimapAssert<java.lang.Object,java.lang.Object>> MULTIMAP
- See Also:
multimap(Class, Class)
-
OPTIONAL
static final InstanceOfAssertFactory<com.google.common.base.Optional,OptionalAssert<java.lang.Object>> OPTIONAL
- See Also:
optional(Class)
-
TABLE
static final InstanceOfAssertFactory<com.google.common.collect.Table,TableAssert<java.lang.Object,java.lang.Object,java.lang.Object>> TABLE
InstanceOfAssertFactoryfor aTable, assumingObjectas row key type, column key type and value type.- See Also:
table(Class, Class, Class)
-
MULTISET
static final InstanceOfAssertFactory<com.google.common.collect.Multiset,MultisetAssert<java.lang.Object>> MULTISET
- See Also:
multiset(Class)
-
-
Method Detail
-
multimap
static <K,V> InstanceOfAssertFactory<com.google.common.collect.Multimap,MultimapAssert<K,V>> multimap(java.lang.Class<K> keyType, java.lang.Class<V> valueType)
InstanceOfAssertFactoryfor aMultimap.- Type Parameters:
K- theMultimapkey type.V- theMultimapvalue type.- Parameters:
keyType- the key type instance.valueType- the value type instance.- Returns:
- the factory instance.
- See Also:
MULTIMAP
-
optional
static <VALUE> InstanceOfAssertFactory<com.google.common.base.Optional,OptionalAssert<VALUE>> optional(java.lang.Class<VALUE> resultType)
InstanceOfAssertFactoryfor anOptional.- Type Parameters:
VALUE- theOptionalvalue type.- Parameters:
resultType- the value type instance.- Returns:
- the factory instance.
- See Also:
OPTIONAL
-
range
static <C extends java.lang.Comparable<C>> InstanceOfAssertFactory<com.google.common.collect.Range,RangeAssert<C>> range(java.lang.Class<C> comparableType)
InstanceOfAssertFactoryfor aRange.- Type Parameters:
C- theComparabletype.- Parameters:
comparableType- the comparable type instance.- Returns:
- the factory instance.
-
rangeMap
static <K extends java.lang.Comparable<K>,V> InstanceOfAssertFactory<com.google.common.collect.RangeMap,RangeMapAssert<K,V>> rangeMap(java.lang.Class<K> keyType, java.lang.Class<V> valueType)
InstanceOfAssertFactoryfor aRangeMap.- Type Parameters:
K- theRangeMapkey type.V- theRangeMapvalue type.- Parameters:
keyType- the key type instance.valueType- the value type instance.- Returns:
- the factory instance.
-
rangeSet
static <T extends java.lang.Comparable<T>> InstanceOfAssertFactory<com.google.common.collect.RangeSet,RangeSetAssert<T>> rangeSet(java.lang.Class<T> comparableType)
InstanceOfAssertFactoryfor aRangeSet.- Type Parameters:
T- theComparabletype.- Parameters:
comparableType- the comparable type instance.- Returns:
- the factory instance
-
table
static <R,C,V> InstanceOfAssertFactory<com.google.common.collect.Table,TableAssert<R,C,V>> table(java.lang.Class<R> rowKeyType, java.lang.Class<C> columnKeyType, java.lang.Class<V> valueType)
InstanceOfAssertFactoryfor aTable.- Type Parameters:
R- theTablerow key type.C- theTablecolumn key type.V- theTablevalue type.- Parameters:
rowKeyType- the row key type instance.columnKeyType- the column key type instance.valueType- the value type instance.- Returns:
- the factory instance.
- See Also:
TABLE
-
multiset
static <ELEMENT> InstanceOfAssertFactory<com.google.common.collect.Multiset,MultisetAssert<ELEMENT>> multiset(java.lang.Class<ELEMENT> elementType)
InstanceOfAssertFactoryfor aMultiset.- Type Parameters:
ELEMENT- theMultisetelement type.- Parameters:
elementType- the element type instance.- Returns:
- the factory instance.
- See Also:
MULTISET
-
-