gitlab.com/evatix-go/core@v1.3.55/internal/internalinterface/internalenuminf/all-is-checkers.go (about)

     1  package internalenuminf
     2  
     3  type IsValidChecker interface {
     4  	// IsValid similar or alias for IsSuccessChecker
     5  	IsValid() bool
     6  }
     7  
     8  type IsInvalidChecker interface {
     9  	IsInvalid() bool
    10  }
    11  
    12  type IsValidInvalidChecker interface {
    13  	IsValidChecker
    14  	IsInvalidChecker
    15  }
    16  
    17  type IsNameEqualer interface {
    18  	IsNameEqual(name string) bool
    19  }
    20  
    21  // IsAnyNameOfChecker
    22  //
    23  //  Returns true if any of the name matches.
    24  type IsAnyNameOfChecker interface {
    25  	// IsAnyNamesOf
    26  	//
    27  	//  Returns true if any of the name matches.
    28  	IsAnyNamesOf(names ...string) bool
    29  }
    30  
    31  type IsAnyValueByteEqualer interface {
    32  	IsAnyValuesEqual(anyByteValues ...byte) bool
    33  }
    34  
    35  type IsAnyValueIntegerEqualer interface {
    36  	IsAnyValuesEqual(anyValues ...int) bool
    37  }
    38  
    39  type IsAnyValueInteger8Equaler interface {
    40  	IsAnyValuesEqual(anyValues ...int8) bool
    41  }
    42  
    43  type IsAnyValueInteger16Equaler interface {
    44  	IsAnyValuesEqual(anyValues ...int16) bool
    45  }
    46  
    47  type IsAnyValueInteger32Equaler interface {
    48  	IsAnyValuesEqual(anyValues ...int32) bool
    49  }
    50  
    51  type IsByteValueEqualer interface {
    52  	IsByteValueEqual(value byte) bool
    53  }
    54  
    55  type IsValueIntegerEqualer interface {
    56  	IsValueEqual(value int) bool
    57  }
    58  
    59  type IsValueInteger8Equaler interface {
    60  	IsValueEqual(value int8) bool
    61  }
    62  
    63  type IsValueInteger16Equaler interface {
    64  	IsValueEqual(value int16) bool
    65  }
    66  
    67  type IsValueInteger32Equaler interface {
    68  	IsValueEqual(value int32) bool
    69  }
    70  
    71  type RangeValidateChecker interface {
    72  	// RangesInvalidMessage get invalid message
    73  	RangesInvalidMessage() string
    74  	// RangesInvalidErr get invalid message error
    75  	RangesInvalidErr() error
    76  	// IsValidRange Is with in the range as expected.
    77  	IsValidRange() bool
    78  	// IsInvalidRange Is out of the ranges expected.
    79  	IsInvalidRange() bool
    80  }
    81  
    82  type IsEnumEqualer interface {
    83  	IsEnumEqual(enum BasicEnumer) bool
    84  }
    85  
    86  type IsAnyEnumsEqualer interface {
    87  	IsAnyEnumsEqual(enums ...BasicEnumer) bool
    88  }