changes from review

This commit is contained in:
ghidravore 2019-08-29 17:22:18 -04:00
parent 7b7e730844
commit 42448fbfa6
4 changed files with 15 additions and 43 deletions

View file

@ -1,30 +0,0 @@
/* ###
* IP: GHIDRA
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package docking.widgets.fieldpanel.listener;
import java.math.BigInteger;
/**
* IndexMapper that always maps an index back to itself.
*/
class IdentityMapper implements IndexMapper {
@Override
public BigInteger map(BigInteger value) {
return value;
}
}

View file

@ -26,7 +26,12 @@ import docking.widgets.fieldpanel.FieldPanel;
* indexes to new indexes.
*/
public interface IndexMapper {
public IndexMapper IDENTITY_MAPPER = new IdentityMapper();
public static final IndexMapper IDENTITY_MAPPER = new IndexMapper() {
@Override
public BigInteger map(BigInteger value) {
return value;
}
};
public BigInteger map(BigInteger value);
}