Package io.github.astrapi69.file.search
Class SearchFileAttributesBean
java.lang.Object
io.github.astrapi69.file.search.SearchFileAttributesBean
The class
SearchFileAttributesBean
encapsulates flags to indicate whether specific file
attributes should be ignored during file comparison operations.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The builder class for constructingSearchFileAttributesBean
objects. -
Constructor Summary
ConstructorsConstructorDescriptionSearchFileAttributesBean
(boolean ignoreContentEquality, boolean ignoreExtensionEquality, boolean ignoreLastModified, boolean ignoreLengthEquality, boolean ignoreNameEquality) Constructs a newSearchFileAttributesBean
with specified flags. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns a builder for constructingSearchFileAttributesBean
objects.protected boolean
Internal method for checking equality with another object.boolean
Indicates whether some other object is "equal to" this one.int
hashCode()
Returns a hash code value for the object.boolean
Retrieves the flag indicating whether content equality should be ignored.boolean
Retrieves the flag indicating whether extension equality should be ignored.boolean
Retrieves the flag indicating whether last modified attribute should be ignored.boolean
Retrieves the flag indicating whether length equality should be ignored.boolean
Retrieves the flag indicating whether name equality should be ignored.Returns a builder initialized with the values of thisSearchFileAttributesBean
object.toString()
Returns a string representation of the object.
-
Constructor Details
-
SearchFileAttributesBean
public SearchFileAttributesBean(boolean ignoreContentEquality, boolean ignoreExtensionEquality, boolean ignoreLastModified, boolean ignoreLengthEquality, boolean ignoreNameEquality) Constructs a newSearchFileAttributesBean
with specified flags.- Parameters:
ignoreContentEquality
- flag indicating whether content equality should be ignoredignoreExtensionEquality
- flag indicating whether extension equality should be ignoredignoreLastModified
- flag indicating whether last modified attribute should be ignoredignoreLengthEquality
- flag indicating whether length equality should be ignoredignoreNameEquality
- flag indicating whether name equality should be ignored
-
-
Method Details
-
builder
Returns a builder for constructingSearchFileAttributesBean
objects.- Returns:
- a new instance of
SearchFileAttributesBeanBuilder
-
canEqual
Internal method for checking equality with another object.- Parameters:
other
- the object to compare- Returns:
- true if the objects can be considered equal, false otherwise
-
equals
Indicates whether some other object is "equal to" this one. -
hashCode
public int hashCode()Returns a hash code value for the object. -
isIgnoreContentEquality
public boolean isIgnoreContentEquality()Retrieves the flag indicating whether content equality should be ignored.- Returns:
- true if content equality should be ignored, false otherwise
-
isIgnoreExtensionEquality
public boolean isIgnoreExtensionEquality()Retrieves the flag indicating whether extension equality should be ignored.- Returns:
- true if extension equality should be ignored, false otherwise
-
isIgnoreLastModified
public boolean isIgnoreLastModified()Retrieves the flag indicating whether last modified attribute should be ignored.- Returns:
- true if last modified attribute should be ignored, false otherwise
-
isIgnoreLengthEquality
public boolean isIgnoreLengthEquality()Retrieves the flag indicating whether length equality should be ignored.- Returns:
- true if length equality should be ignored, false otherwise
-
isIgnoreNameEquality
public boolean isIgnoreNameEquality()Retrieves the flag indicating whether name equality should be ignored.- Returns:
- true if name equality should be ignored, false otherwise
-
toBuilder
Returns a builder initialized with the values of thisSearchFileAttributesBean
object.- Returns:
- a new
SearchFileAttributesBeanBuilder
initialized with this object's values
-
toString
Returns a string representation of the object.
-