forked from fanruan/easyexcel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
528 B
33 lines
528 B
package com.alibaba.excel.write.metadata; |
|
|
|
import java.util.Map; |
|
|
|
/** |
|
* A map row of data. |
|
* |
|
* @author Jiaju Zhuang |
|
*/ |
|
public class MapRowData implements RowData { |
|
|
|
private final Map<Integer, ?> map; |
|
|
|
public MapRowData(Map<Integer, ?> map) { |
|
this.map = map; |
|
} |
|
|
|
@Override |
|
public Object get(int index) { |
|
return map.get(index); |
|
} |
|
|
|
@Override |
|
public int size() { |
|
return map.size(); |
|
} |
|
|
|
@Override |
|
public boolean isEmpty() { |
|
return map.isEmpty(); |
|
} |
|
|
|
}
|
|
|