/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2019 Nordix Foundation.
- * Modifications Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2019, 2023 Nordix Foundation.
+ * Modifications Copyright (C) 2019-2020 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.
package org.onap.policy.models.base.testconcepts;
-import java.util.Arrays;
+import java.io.Serial;
import java.util.List;
-
import lombok.NonNull;
-
+import org.onap.policy.common.parameters.BeanValidationResult;
import org.onap.policy.models.base.PfConcept;
import org.onap.policy.models.base.PfKey;
-import org.onap.policy.models.base.PfValidationResult;
public class DummyPfKey extends PfKey {
+ @Serial
private static final long serialVersionUID = 1L;
+ public DummyPfKey() {
+ // Default constructor
+ }
+
+ public DummyPfKey(DummyPfKey source) {
+ super(source);
+ }
+
@Override
- public int compareTo(PfConcept arg0) {
+ public int compareTo(@NonNull PfConcept arg0) {
return 0;
}
}
@Override
- public Compatibility getCompatibility(PfKey otherKey) {
+ public Compatibility getCompatibility(@NonNull PfKey otherKey) {
return null;
}
@Override
- public boolean isCompatible(PfKey otherKey) {
+ public boolean isCompatible(@NonNull PfKey otherKey) {
return false;
}
@Override
public List<PfKey> getKeys() {
- return Arrays.asList(getKey());
+ return List.of(getKey());
}
@Override
- public PfValidationResult validate(PfValidationResult result) {
+ public BeanValidationResult validate(@NonNull String fieldName) {
return null;
}
return 0;
}
- @Override
- public PfConcept copyTo(PfConcept target) {
- return null;
- }
-
@Override
public boolean isNewerThan(@NonNull PfKey otherKey) {
// TODO Auto-generated method stub