首页 \ 问答 \ Java集合(Java Collections)

Java集合(Java Collections)

我将以下内容添加到UI表单中每行之后的HashMap集合中

宣言

Map<String, List<String>> map = new HashMap<String, List<String>>();

List<String> valSetOne = new ArrayList<String>();

代码段

    valSetOne.add("BMW");
    valSetOne.add("Audi");
    map.put("A1", valSetOne);

当我在UI的第二行时,我想检查HashMap集合中存在的上述组合。

我如何检查每一行中的值的组合?


I am adding the following to the HashMap collection after each row in the UI form

Declaration

Map<String, List<String>> map = new HashMap<String, List<String>>();

List<String> valSetOne = new ArrayList<String>();

Code snippet

    valSetOne.add("BMW");
    valSetOne.add("Audi");
    map.put("A1", valSetOne);

When I am in the second row in UI, I would like to check the above combination exist in the HashMap collection.

How can I check for the combination of values in each row?


原文:https://stackoverflow.com/questions/42087604
更新时间:2024-03-24 10:03

最满意答案

不是直接的。 但是,如果您在Open Graph上检查他们的listens ,您将能够看到他们是否正在积极地分享他们对Facebook的倾听。 但是,它肯定可以连接到Facebook而不是分享你的听力。


Not directly. However, if you check their listens on Open Graph, you'll be able to see if they're actively sharing their listens to Facebook. However, it's certainly possible to be connected to Facebook and not share your listens.

相关问答

更多
  • 您可以使用SPSession的fetchScrobblingStateForService:callback:来确定是否启用了对特定服务的scrobbling。 要启用涂鸦,如果未启用,则需要调用setScrobblingUserName:password:forService:callback:设置服务的凭据,然后设置setScrobblingState:forService:callback:启用它。 将状态设置为SP_SCROBBLING_STATE_USE_GLOBAL_SETTING以在用户的会话 ...
  • 我注意到你的代码有两件事: 授权: Bearer ${accessToken} accessToken似乎没有在代码块中的任何地方定义,而是我看到了userAccessToken 错误的第二个也是最可能的原因是请求的主体应该是一个字符串(JSON字符串化)而不是一个对象 这个答案就是一个很好的例子 PS:我不知道为什么有人投下了这件事,并没有给出理由,我讨厌这种情况发生 Two things i noticed with your code are: Authorization: Bearer ${acce ...
  • 用这个: m.player.playing = 0; 在这里阅读有关播放器的信息: https : //developer.spotify.com/docs/apps/api/0.1/f19ff300f8.html Use this: m.player.playing = 0; Read here about the player: https://developer.spotify.com/docs/apps/api/0.1/f19ff300f8.html
  • 应用程序可以代表用户修改播放列表 播放列表由用户拥有。 用户通过向应用程序提供playlist-modify-public或playlist-modify-private范围,授予应用程序这样做的权限。 在“ 使用范围”指南中阅读有关范围的更多信息。 无论可以修改哪个播放列表, 获取用户播放列表端点列表的响应都将完全相同。 但是,您的应用程序可以确定是否可以修改播放列表,因为它应该知道上面列出的两个要求是真还是假。 编辑:为了澄清,应用程序无法修改由与其代表的用户不同的用户所拥有的协作播放列表。 An ap ...
  • 首先,回答你关于在哪里找到文件夹的第二个问题(我也在我自己的原帖中将其作为评论发布): 在Windows中,文件夹位于数据文件夹中的.zip文件( resources.zip ),因此Spotify.exe。 就我而言,这是 C:\ Users \用户buchetics \应用程序数据\漫游\ Spotify的\ DATA \ resources.zip 在Mac上,您需要右键单击Spotify.app并选择Show Package Content (或类似Show Package Content ),然后 ...
  • 有没有办法通过使用其API从Spotify中提取数据的脚本来返回多个用户的收听习惯? Spotify不会暴露用户的收听习惯,除非他们授权应用程序请求它(我认为这是你通过OAuth说的时的意思)。 没有将用户数据暴露给全世界的隐私原因相当大。 is there any way to return multiple users' listening habits through a script that pulls data from Spotify using its API? Spotify doesn' ...
  • 不是直接的。 但是,如果您在Open Graph上检查他们的listens ,您将能够看到他们是否正在积极地分享他们对Facebook的倾听。 但是,它肯定可以连接到Facebook而不是分享你的听力。 Not directly. However, if you check their listens on Open Graph, you'll be able to see if they're actively sharing their listens to Facebook. However, it' ...
  • 解决了,我从安装目录中获得了Plasylist.bnk,现在解决了。 谢谢大家 Solved, i got Plasylist.bnk from the installation directory, and its solved now. thanks all
  • Web API 当前不包含用于检索用户播放历史的端点。 请密切关注Spotify Web API更改日志的更新。 The Web API doesn't currently contain an endpoint to retrieve a user's play history. Please keep an eye out for updates on the Spotify Web API change log.
  • 除非我遗漏了什么,这会做你想要的吗? http://ws.spotify.com/search/1/track.json?q=artist:foo+fighters artist:前缀告诉搜索服务只匹配艺术家。 您可以在此处阅读有关高级搜索语法(也可在客户端中使用)的更多信息 。 Unless I'm missing something, does this do what you want? http://ws.spotify.com/search/1/track.json?q=artist:foo+f ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。