We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Override public void swap(int fromPos, int toPos, List<NewsTypeInfo> list) { NewsTypeInfo fromInfo = list.get(fromPos); NewsTypeInfo toInfo = list.get(toPos); NewsTypeInfo tem = fromInfo; //要重写创建对象,不能去改变源对象,因为源对象在多处使用到 fromInfo = new NewsTypeInfo(tem.getId(), toInfo.getName(), toInfo.getTypeId()); toInfo = new NewsTypeInfo(toInfo.getId(), tem.getName(), tem.getTypeId()); update(fromInfo); update(toInfo);
}
The text was updated successfully, but these errors were encountered:
嗯,这样应该会比我之前写法好
Sorry, something went wrong.
@Lingyuezhixing 有没有更详细点的源码
No branches or pull requests
}
The text was updated successfully, but these errors were encountered: