Package org.assertj.guava.api
Interface InstanceOfAssertFactories
-
- All Known Implementing Classes:
Assertions
public interface InstanceOfAssertFactories
- Since:
- 3.3.0
-
-
Field Summary
Fields Modifier and Type Field Description static InstanceOfAssertFactory<com.google.common.io.ByteSource,ByteSourceAssert>
BYTE_SOURCE
InstanceOfAssertFactory
for aByteSource
.static InstanceOfAssertFactory<com.google.common.collect.Multimap,MultimapAssert<java.lang.Object,java.lang.Object>>
MULTIMAP
static InstanceOfAssertFactory<com.google.common.collect.Multiset,MultisetAssert<java.lang.Object>>
MULTISET
static InstanceOfAssertFactory<com.google.common.base.Optional,OptionalAssert<java.lang.Object>>
OPTIONAL
static InstanceOfAssertFactory<com.google.common.collect.Table,TableAssert<java.lang.Object,java.lang.Object,java.lang.Object>>
TABLE
InstanceOfAssertFactory
for aTable
, assumingObject
as 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)
InstanceOfAssertFactory
for aMultimap
.static <ELEMENT> InstanceOfAssertFactory<com.google.common.collect.Multiset,MultisetAssert<ELEMENT>>
multiset(java.lang.Class<ELEMENT> elementType)
InstanceOfAssertFactory
for aMultiset
.static <VALUE> InstanceOfAssertFactory<com.google.common.base.Optional,OptionalAssert<VALUE>>
optional(java.lang.Class<VALUE> resultType)
InstanceOfAssertFactory
for anOptional
.static <C extends java.lang.Comparable<C>>
InstanceOfAssertFactory<com.google.common.collect.Range,RangeAssert<C>>range(java.lang.Class<C> comparableType)
InstanceOfAssertFactory
for 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)
InstanceOfAssertFactory
for aRangeMap
.static <T extends java.lang.Comparable<T>>
InstanceOfAssertFactory<com.google.common.collect.RangeSet,RangeSetAssert<T>>rangeSet(java.lang.Class<T> comparableType)
InstanceOfAssertFactory
for 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)
InstanceOfAssertFactory
for aTable
.
-
-
-
Field Detail
-
BYTE_SOURCE
static final InstanceOfAssertFactory<com.google.common.io.ByteSource,ByteSourceAssert> BYTE_SOURCE
InstanceOfAssertFactory
for 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
InstanceOfAssertFactory
for aTable
, assumingObject
as 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)
InstanceOfAssertFactory
for aMultimap
.- Type Parameters:
K
- theMultimap
key type.V
- theMultimap
value 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)
InstanceOfAssertFactory
for anOptional
.- Type Parameters:
VALUE
- theOptional
value 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)
InstanceOfAssertFactory
for aRange
.- Type Parameters:
C
- theComparable
type.- 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)
InstanceOfAssertFactory
for aRangeMap
.- Type Parameters:
K
- theRangeMap
key type.V
- theRangeMap
value 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)
InstanceOfAssertFactory
for aRangeSet
.- Type Parameters:
T
- theComparable
type.- 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)
InstanceOfAssertFactory
for aTable
.- Type Parameters:
R
- theTable
row key type.C
- theTable
column key type.V
- theTable
value 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)
InstanceOfAssertFactory
for aMultiset
.- Type Parameters:
ELEMENT
- theMultiset
element type.- Parameters:
elementType
- the element type instance.- Returns:
- the factory instance.
- See Also:
MULTISET
-
-