mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
changes from review
This commit is contained in:
parent
7b7e730844
commit
42448fbfa6
4 changed files with 15 additions and 43 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue