Class SearchFileAttributesBean

java.lang.Object
io.github.astrapi69.file.search.SearchFileAttributesBean

public class SearchFileAttributesBean extends Object
The class SearchFileAttributesBean encapsulates flags to indicate whether specific file attributes should be ignored during file comparison operations.
  • Constructor Details

    • SearchFileAttributesBean

      public SearchFileAttributesBean(boolean ignoreContentEquality, boolean ignoreExtensionEquality, boolean ignoreLastModified, boolean ignoreLengthEquality, boolean ignoreNameEquality)
      Constructs a new SearchFileAttributesBean with specified flags.
      Parameters:
      ignoreContentEquality - flag indicating whether content equality should be ignored
      ignoreExtensionEquality - flag indicating whether extension equality should be ignored
      ignoreLastModified - flag indicating whether last modified attribute should be ignored
      ignoreLengthEquality - flag indicating whether length equality should be ignored
      ignoreNameEquality - flag indicating whether name equality should be ignored
  • Method Details

    • builder

      Returns a builder for constructing SearchFileAttributesBean objects.
      Returns:
      a new instance of SearchFileAttributesBeanBuilder
    • canEqual

      protected boolean canEqual(Object other)
      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

      public boolean equals(Object o)
      Indicates whether some other object is "equal to" this one.
      Overrides:
      equals in class Object
      Parameters:
      o - the object to compare
      Returns:
      true if this object is the same as the o argument; false otherwise
    • hashCode

      public int hashCode()
      Returns a hash code value for the object.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this 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 this SearchFileAttributesBean object.
      Returns:
      a new SearchFileAttributesBeanBuilder initialized with this object's values
    • toString

      public String toString()
      Returns a string representation of the object.
      Overrides:
      toString in class Object
      Returns:
      a string representation of the object