Interface CFileState
-
- All Superinterfaces:
CBaseState<java.io.File>
,CObjectState<java.io.File>
,java.io.Serializable
- All Known Subinterfaces:
CFileExtension
- All Known Implementing Classes:
CFile
public interface CFileState extends CObjectState<java.io.File>
CFileState is an interface for File state related methods.
We need this interface to have possibility of adding state to any exists objects with the minimum change in the code.
-
-
Field Summary
-
Fields inherited from interface org.catools.common.extensions.states.interfaces.CBaseState
serialVersionUID
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default boolean
equalsStringContent(java.io.File expectedFile)
Check if actual and expected file have the exact same content.default boolean
isEqual(java.io.File expected)
Check if actual and expected are equaldefault boolean
notEqualsStringContent(java.io.File expectedFile)
Check if actual and expected file does not have the exact same content.-
Methods inherited from interface org.catools.common.extensions.states.interfaces.CBaseState
getBaseValue
-
Methods inherited from interface org.catools.common.extensions.states.interfaces.CObjectState
equalsAny, equalsAny, equalsNone, equalsNone, isNotNull, isNull, notEqual, test
-
-
-
-
Method Detail
-
isEqual
default boolean isEqual(java.io.File expected)
Description copied from interface:CObjectState
Check if actual and expected are equal- Specified by:
isEqual
in interfaceCObjectState<java.io.File>
- Parameters:
expected
- value to compare- Returns:
- execution result
-
equalsStringContent
default boolean equalsStringContent(java.io.File expectedFile)
Check if actual and expected file have the exact same content.- Parameters:
expectedFile
- file to compare- Returns:
- execution boolean result
-
notEqualsStringContent
default boolean notEqualsStringContent(java.io.File expectedFile)
Check if actual and expected file does not have the exact same content.- Parameters:
expectedFile
- file to compare- Returns:
- execution boolean result
-
-