* ============LICENSE_START=======================================================
* ONAP-XACML
* ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
private transient Set<PDPPIPConfig> failedPIPConfigs = new HashSet<>();
public StdPDPStatus() {
+ //
+ // Default constructor
+ //
}
public void set(StdPDPStatus newStatus) {
@Override
public boolean policiesOK() {
- if (this.failedPolicies.size() > 0) {
+ if (!this.failedPolicies.isEmpty()) {
return false;
}
return true;
@Override
public boolean pipConfigOK() {
- if (this.failedPIPConfigs.size() > 0) {
+ if (!this.failedPIPConfigs.isEmpty()) {
return false;
}
return true;
@Override
@JsonIgnore
public boolean isOk() {
- if (this.policiesOK() == false) {
+ if (!this.policiesOK()) {
return false;
}
- if (this.pipConfigOK() == false) {
+ if (!this.pipConfigOK()) {
return false;
}
- return (this.status == Status.UP_TO_DATE);
+ return this.status == Status.UP_TO_DATE;
}
@Override
return false;
if (!loadedPolicies.equals(other.loadedPolicies))
return false;
+ if (!loadedRootPolicies.equals(other.loadedRootPolicies))
+ return false;
if (status != other.status)
return false;
return true;