MCPcopy Create free account
hub / github.com/apache/mesos / get

Method get

src/v1/attributes.cpp:80–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78
79
80const Option<Attribute> Attributes::get(const Attribute& thatAttribute) const
81{
82 foreach (const Attribute& attribute, attributes) {
83 if (attribute.name() == thatAttribute.name() &&
84 attribute.type() == thatAttribute.type()) {
85 return attribute;
86 }
87 }
88
89 return None();
90}
91
92
93bool Attributes::contains(const Attribute& attribute) const

Callers 1

parseMethod · 0.45

Calls 1

NoneClass · 0.85

Tested by

no test coverage detected