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

Method get

src/common/attributes.cpp:79–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

parseMethod · 0.45

Calls 1

NoneClass · 0.85

Tested by

no test coverage detected