/**
  * {@inheritDoc}
  */
 public function getCodepointsByCategory(GeneralCategory $category)
 {
     $comparator = function (CodepointAssigned $item) use($category) {
         return $item->getGeneralProperties()->getGeneralCategory()->equals($category);
     };
     return $this->aggregatePropertiesWith($comparator, GeneralCategoryNotFoundException::withCategory($category));
 }
 /**
  * {@inheritDoc}
  */
 public function getCodepointsByCategory(Properties\General\GeneralCategory $category)
 {
     return $this->resolveCodepointsByProperty(Property::ofType(Property::GENERAL_CATEGORY), (string) $category, Repository\GeneralCategoryNotFoundException::withCategory($category));
 }