Which type of figurative language is used in this sentence from George Orwell’s novel Keep the Aspidistra Flying?

The public are swine; advertising is the rattling of a stick inside a swill-bucket.