com.fluxtion.ext.streaming.api.test.OrOperator Maven / Gradle / Ivy
/*
* Copyright (C) 2018 V12 Technology Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Server Side Public License for more details.
*
* You should have received a copy of the Server Side Public License
* along with this program. If not, see
* .
*/
package com.fluxtion.ext.streaming.api.test;
import com.fluxtion.api.annotations.OnEvent;
import com.fluxtion.ext.streaming.api.Test;
import java.util.Arrays;
/**
* Boolean or operator.
*
* @author gregp
*/
public class OrOperator implements Test {
private final Object[] tracked;
public OrOperator(Object[] tracked) {
this.tracked = tracked;
}
@OnEvent
public boolean testOr() {
return true;
}
@Override
public int hashCode() {
int hash = 7;
hash = 79 * hash + Arrays.deepHashCode(this.tracked);
return hash;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final OrOperator other = (OrOperator) obj;
if (!Arrays.deepEquals(this.tracked, other.tracked)) {
return false;
}
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy